diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8d28265..6966e52 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: @@ -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: @@ -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" diff --git a/README.md b/README.md index 4255aea..7f6d1d0 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/action.yml b/action.yml index e173157..67b37ce 100644 --- a/action.yml +++ b/action.yml @@ -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 diff --git a/badges/coverage.svg b/badges/coverage.svg index 03ba7e0..8c18cf8 100644 --- a/badges/coverage.svg +++ b/badges/coverage.svg @@ -1 +1 @@ -Coverage: 18.18%Coverage18.18% \ No newline at end of file +Coverage: 17.97%Coverage17.97% \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 9cef71c..c844fb3 100644 --- a/dist/index.js +++ b/dist/index.js @@ -48619,6 +48619,7 @@ async function or8n(inputs) { }); if (exitCode === 0) { core.setOutput('extra-pw-flags', '--last-failed'); + core.setOutput('extra-discovery-flags', '--last-failed'); } } } diff --git a/src/index.ts b/src/index.ts index 108708a..a5d77c9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -135,6 +135,7 @@ async function or8n(inputs: ActionInputs): Promise { if (exitCode === 0) { core.setOutput('extra-pw-flags', '--last-failed') + core.setOutput('extra-discovery-flags', '--last-failed') } } }