Skip to content

Commit

Permalink
Show a last-failed example
Browse files Browse the repository at this point in the history
  • Loading branch information
twk3 committed Nov 26, 2024
1 parent 5ae3593 commit 005dc1d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,16 @@ jobs:
- 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
env:
CURRENTS_API_URL: https://cy-staging.currents.dev
CURRENTS_PROJECT_ID: ${{secrets.CURRENTS_PROJECT_ID}}
CURRENTS_RECORD_KEY: ${{secrets.CURRENTS_RECORD_KEY}}
CURRENTS_CI_BUILD_ID: ${{ github.run_id }}-${{ github.sha }}
run: npx nx run-many -t e2e --verbose --parallel=2 --base=main~1 --head=HEAD
run: npx nx run-many -t e2e --verbose --parallel=2 --base=main~1 --head=HEAD ${{ steps.last-failed-action.outputs.extra-pw-flags }}

0 comments on commit 005dc1d

Please sign in to comment.