Skip to content
Merged
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
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '18'
node-version: '22'

- name: Print inputs for debugging (Sharding)
env:
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
node-version: '22'

- name: Print inputs for debugging (Or8n)
env:
Expand All @@ -96,5 +96,8 @@ jobs:
- name: Verify Action Output (Or8n)
env:
EXTRA_FLAGS: ${{ steps.or8n_action.outputs.extra-pw-flags }}
EXTRA_DISCOVERY_FLAGS:
${{ steps.or8n_action.outputs.extra-discovery-flags }}
run: |
echo "Extra Playwright Flags: $EXTRA_FLAGS"
echo "Extra Discovery Flags: $EXTRA_DISCOVERY_FLAGS"
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,17 @@ skipped**.

On **re-run attempts** (`GITHUB_RUN_ATTEMPT` > 1), the main step runs
`npx currents api get-run` to fetch the previous run and, when successful, sets
`extra-pw-flags` to `--last-failed`. The workflow should define
`extra-discovery-flags` to `--last-failed`. The workflow should define
**`CURRENTS_API_KEY`**, **`CURRENTS_PROJECT_ID`** (and related environment
variables as in the docs), and set **`or8n: true`** (or `use-api: true`) as
shown in the [orchestration section][or8n-section] of the documentation.

## Outputs

| Name | Description |
| ---------------- | ----------------------------------------------- |
| `extra-pw-flags` | Flags to append to the Playwright test command. |
| Name | Description |
| ----------------------- | ------------------------------------------------ |
| `extra-pw-flags` | Flags to append to the Playwright test command. |
| `extra-discovery-flags` | Flags to append to the `pwc-p discover` command. |

If restoration fails, the output may be empty; the workflow can still run tests
normally.
Expand Down
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ inputs:
outputs:
extra-pw-flags:
description: "Extra flags to pass to Playwright's test runner"
extra-discovery-flags:
description: 'Extra flags to pass to pwc-p discover'

runs:
using: node24
Expand Down
2 changes: 1 addition & 1 deletion badges/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ async function or8n(inputs: ActionInputs): Promise<void> {

if (exitCode === 0) {
core.setOutput('extra-pw-flags', '--last-failed')
core.setOutput('extra-discovery-flags', '--last-failed')
}
}
}
Expand Down