Show a last-failed example #15
This file contains 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 E2E Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
e2e_tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
shard: [1, 2, 3] | |
env: | |
CURRENTS_PROJECT_ID: ${{secrets.CURRENTS_PROJECT_ID}} | |
CURRENTS_RECORD_KEY: ${{secrets.CURRENTS_RECORD_KEY}} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: npm install | |
- name: Reset NX | |
run: npx nx reset | |
- name: Playwright Last Failed action | |
id: last-failed-action | |
uses: currents-dev/playwright-last-failed@v1 | |
with: | |
pw-output-dir: playwright-report | |
- name: Run All E2E Tests | |
run: npx nx run-many -t e2e --verbose --parallel=2 ${{ steps.last-failed-action.outputs.extra-pw-flags }} |