Widen yoast/phpunit-polyfills constraint (#19) #10
Workflow file for this run
This file contains hidden or 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: Test Library | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| lint: | |
| name: PHP Code Sniffer | |
| uses: tarosky/workflows/.github/workflows/phpcs.yml@main | |
| with: | |
| version: 7.4 | |
| short-open-tag: | |
| name: Short Open Tag Check | |
| uses: tarosky/workflows/.github/workflows/php-short-open-tag.yml@main | |
| assets: | |
| name: Assets Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install Node | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: '20' | |
| - name: Install NPM Packages | |
| run: npm install | |
| - name: Check JS & CSS syntax | |
| run: npm run lint | |
| - name: Build Succeed | |
| run: npm run build | |
| phpunit: | |
| name: PHPUnit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install Node | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: '20' | |
| - name: Install NPM Packages | |
| run: npm install | |
| - name: Setup PHP with composer v2 | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 7.4 | |
| tools: composer | |
| - name: Install Composer Dependencies | |
| run: composer install --prefer-dist --no-progress | |
| - name: Start wp-env | |
| run: npx wp-env start | |
| - name: Run PHPUnit | |
| run: npm test | |
| status-check: | |
| name: Status Check | |
| runs-on: ubuntu-latest | |
| needs: [ lint, short-open-tag, assets, phpunit ] | |
| if: always() | |
| steps: | |
| - uses: re-actors/alls-green@release/v1 | |
| with: | |
| jobs: ${{ toJSON(needs) }} |