Skip to content

Commit 2031ea6

Browse files
committed
test(command): Model the preflight report wiring in the workflow-check fixture
Align the command-level workflow fixture with the production publish job: the node-only assertion and provisioning steps bind REPORT_PATH and pass --report-path, matching the workflowcheck contract added in 049796e. Signed-off-by: Yunseo Kim <[email protected]>
1 parent 37db904 commit 2031ea6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎internal/command/workflow_check_test.go‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,12 @@ jobs:
118118
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
119119
with: {node-version: "24.21.0"}
120120
- working-directory: .slsa-builder
121-
run: go run ./cmd/slsa-builder-internal npm-profile-toolchain-assert --node-only
121+
env: {REPORT_PATH: "${{ runner.temp }}/windlass-npm-outcome-report.json"}
122+
run: go run ./cmd/slsa-builder-internal npm-profile-toolchain-assert --node-only --report-path "$REPORT_PATH"
122123
- id: npm-provision
123124
working-directory: .slsa-builder
124-
run: go run ./cmd/slsa-builder-internal npm-profile-provision-npm --output-directory "${{ runner.temp }}/windlass-npm-cli" --github-output "$GITHUB_OUTPUT"
125+
env: {REPORT_PATH: "${{ runner.temp }}/windlass-npm-outcome-report.json"}
126+
run: go run ./cmd/slsa-builder-internal npm-profile-provision-npm --output-directory "${{ runner.temp }}/windlass-npm-cli" --github-output "$GITHUB_OUTPUT" --report-path "$REPORT_PATH"
125127
- run: '"${{ steps.npm-provision.outputs.npm-executable }}" --version'
126128
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
127129
with: {name: "js-ts-npm-package-tarball-${{ github.run_id }}-${{ github.run_attempt }}"}

0 commit comments

Comments
 (0)