Merge pull request #1162 from Codeinwp/bugfix/pro/939 #1749
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 | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches-ignore: master | |
| jobs: | |
| e2e: | |
| name: E2E | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| - name: Install npm deps | |
| run: | | |
| npm ci | |
| npm run build | |
| - name: Install composer deps | |
| run: composer install --no-dev | |
| - name: Install environment | |
| run: | | |
| npm run wp-env start | |
| npm run test:e2e | |
| - 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 |