npm(deps-dev): bump the dev-dependencies group with 2 updates #198
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: Run PHPUnit | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| # Cancels all previous workflow runs for the same branch that have not yet completed. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: WP ${{ matrix.wordpress }} on PHP ${{ matrix.php }} | |
| runs-on: ubuntu-latest | |
| env: | |
| WP_VERSION: ${{ matrix.wordpress }} | |
| strategy: | |
| matrix: | |
| include: | |
| # Check lowest supported WP version, with the lowest supported PHP. | |
| - wordpress: '6.4' | |
| php: '7.4' | |
| # Check latest WP with the latest PHP. | |
| - wordpress: 'master' | |
| php: 'latest' | |
| fail-fast: false | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Install wordpress environment | |
| run: npm install -g @wordpress/env | |
| - name: Setup PHP ${{ matrix.php }} | |
| uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: ${{ matrix.extensions }} | |
| ini-values: ${{ matrix.ini-values }} | |
| coverage: ${{ matrix.coverage }} | |
| tools: composer | |
| - name: Setup problem matchers for PHP | |
| run: echo "::add-matcher::${{ runner.tool_cache }}/php.json" | |
| - name: Setup problem matchers for PHPUnit | |
| run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
| - name: Install Composer dependencies | |
| uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0 | |
| with: | |
| composer-options: "${{ matrix.composer-options }}" | |
| - name: Setup wp-env | |
| run: wp-env start | |
| env: | |
| WP_ENV_CORE: WordPress/WordPress#${{ matrix.wordpress == 'latest' && 'master' || matrix.wordpress }} | |
| - name: Run integration tests (single site) | |
| if: ${{ matrix.php != 8.5 }} | |
| run: composer test:integration | |
| - name: Run integration tests (single site with code coverage) | |
| if: ${{ matrix.php == 8.5 }} | |
| run: composer coverage-ci | |
| - name: Run integration tests (multisite) | |
| run: composer test:integration-ms |