Skip to content

Commit

Permalink
test: add the wordpress plugin check action
Browse files Browse the repository at this point in the history
  • Loading branch information
MaferMazu committed Sep 3, 2024
1 parent 1aee9b3 commit cb1f828
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/wordpress-plugin-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 'WordPress Plugin Check'
on:
pull_request

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: "shivammathur/setup-php@v2"
with:
php-version: 'latest'
ini-values: memory_limit=1G'
coverage: none
tools: cs2pr

- name: Install Composer dependencies
uses: "ramsey/composer-install@v2"
with:
# Bust the cache at least once a month - output format: YYYY-MM.
custom-cache-suffix: $(date -u "+%Y-%m")

- name: Run plugin check
uses: wordpress/plugin-check-action@v1

0 comments on commit cb1f828

Please sign in to comment.