Various fixes and label plus version numbering #41
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: PHPUnit | |
on: [pull_request] | |
jobs: | |
php-unit-tests: | |
runs-on: ubuntu-latest | |
name: PHPUnit Tests | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: Install dependencies | |
run: | | |
yarn | |
yarn build | |
composer install | |
- name: Start wp-env | |
run: | | |
yarn wp-env | |
yarn wp-env:start | |
yarn wp-env:theme | |
yarn wp-env:permalinks | |
- name: Install test dependencies | |
run: | | |
yarn wp-env:composer-install | |
- name: Run tests | |
run: | | |
yarn wp-env:phpunit |