Skip to content

Show a last-failed example #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
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
Expand All @@ -26,10 +29,11 @@ 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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the deepest common shared parent output directory of the projects being run (set in the project.json files)


- 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 ${{ steps.last-failed-action.outputs.extra-pw-flags }}
2 changes: 1 addition & 1 deletion .github/workflows/or8n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
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 or8n --verbose --base=main~1 --head=HEAD
run: npx nx run-many -t or8n --verbose
Loading