Bump the wp-packages group across 1 directory with 11 updates #1756
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: E2E Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| e2e-tests: | |
| name: 'E2E Tests (${{ matrix.wp }})' | |
| runs-on: ubuntu-latest | |
| continue-on-error: ${{ matrix.experimental == true }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| wp: ['latest'] | |
| experimental: [false] | |
| include: | |
| - wp: 'trunk' | |
| experimental: true | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Install Playwright browsers | |
| run: npx playwright install --with-deps | |
| - name: Build plugin | |
| run: npm run build | |
| - name: Configure WordPress version | |
| run: | | |
| if [[ $WP_VERSION == 'trunk' ]]; then | |
| echo "Using WordPress trunk" | |
| echo "{\"core\":\"WordPress/WordPress#master\"}" >> .wp-env.override.json | |
| fi | |
| env: | |
| WP_VERSION: ${{ matrix.wp }} | |
| - name: Install WordPress | |
| run: | | |
| chmod -R 767 ./ # TODO: Possibly integrate in wp-env | |
| npm run wp-env start | |
| - name: Prepare tests | |
| run: | | |
| npm run wp-env run tests-cli wp language core install de_CH de_DE es_ES fr_FR it_IT | |
| - name: Run tests | |
| run: npm run test:e2e | |
| - name: Archive debug artifacts (screenshots, HTML snapshots) | |
| uses: actions/upload-artifact@v7 | |
| if: always() | |
| with: | |
| name: failures-artifacts-${{ matrix.wp }} | |
| path: artifacts |