feat(FN-4441): complete Step 2 — verify cache-hit integrity
Fusion-Task-Id: FN-4441 Fusion-Task-Lineage: e3d7d9fe-cd8e-4c00-bb13-0fdb9ce91c34
This commit is contained in:
10
.github/actions/setup-node-pnpm/action.yml
vendored
10
.github/actions/setup-node-pnpm/action.yml
vendored
@@ -47,3 +47,13 @@ runs:
|
||||
if: ${{ inputs.skip-install != 'true' && steps.node-modules-cache.outputs.cache-hit != 'true' }}
|
||||
shell: bash
|
||||
run: pnpm install ${{ inputs.install-args }}
|
||||
|
||||
- name: Verify restored node_modules cache integrity
|
||||
if: ${{ inputs.skip-install != 'true' && steps.node-modules-cache.outputs.cache-hit == 'true' }}
|
||||
shell: bash
|
||||
run: |
|
||||
test -f node_modules/.modules.yaml || {
|
||||
echo "ERROR: node_modules cache hit but node_modules/.modules.yaml is missing"
|
||||
exit 1
|
||||
}
|
||||
pnpm -v
|
||||
|
||||
Reference in New Issue
Block a user