chore(deps-dev): bump phpstan/phpstan from 2.1.28 to 2.1.31 #236
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 E2E | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, ready_for_review] | |
| jobs: | |
| run: | |
| runs-on: ubuntu-latest | |
| if: github.event.pull_request.draft == false && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name | |
| name: Playwright with WP Env | |
| steps: | |
| - uses: actions/checkout@master | |
| with: | |
| persist-credentials: false | |
| - name: Setup Node 20 with cache | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: "npm" | |
| - name: Setup PHP version | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "7.4" | |
| extensions: simplexml | |
| - name: Install NPM dependencies | |
| run: | | |
| npm install -g npm | |
| npm ci | |
| env: | |
| CI: true | |
| - name: Install composer dependencies | |
| run: | | |
| composer install --prefer-dist --no-progress --no-suggest | |
| - name: Build plugin | |
| run: | | |
| npm run build | |
| - name: Install Playwright | |
| run: | | |
| npx playwright install | |
| - name: Setup WP Env | |
| run: | | |
| npm run wp-env start | |
| - name: Run tests | |
| run: | | |
| npm run test:playwright | |
| - name: Archive test results | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: e2e-playwright-results | |
| path: artifacts | |
| retention-days: 1 | |
| if-no-files-found: ignore |