Skip to content

ci: add workflow to run wp plugin checks #3

ci: add workflow to run wp plugin checks

ci: add workflow to run wp plugin checks #3

name: Test
on: [push, pull_request]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: composer
- name: Install
run: composer install --no-interaction
- name: Package plugin
run: rsync -rc --exclude-from=.distignore ./ ./dist/ --delete --delete-excluded
- name: Check WP plugin
uses: wordpress/plugin-check-action@v1
with:
build-dir: ./dist/