Update keywords for the brush #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Plugin Check | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
release: | |
types: [ published ] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Composer install | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: latest | |
coverage: none | |
tools: wp-cli | |
- name: Install latest version of dist-archive-command | |
run: wp package install wp-cli/dist-archive-command:@stable | |
- name: Build plugin | |
run: | | |
wp dist-archive . ./${{ github.event.repository.name }}.zip | |
mkdir tmp-build | |
unzip ${{ github.event.repository.name }}.zip -d tmp-build | |
- name: Run plugin check | |
uses: wordpress/plugin-check-action@v1 | |
with: | |
build-dir: ./tmp-build/${{ github.event.repository.name }} |