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
11 changes: 11 additions & 0 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ on:
type: string
required: false
default: "."
cache-dependency-path:
description: >-
Forwarded to actions/setup-node's `cache-dependency-path`.
Required when the lockfile lives outside the repo root
(e.g. `src/Web/package-lock.json` in a polyglot repo).
Default empty — setup-node falls back to repo-root detection,
matching the prior behaviour for consumers that don't set it.
type: string
required: false
default: ""
install-cmd:
description: Override install command. Empty = pm default.
type: string
Expand Down Expand Up @@ -93,6 +103,7 @@ jobs:
with:
node-version: ${{ inputs.node-version }}
cache: ${{ inputs.package-manager == 'yarn' && 'yarn' || inputs.package-manager == 'pnpm' && 'pnpm' || 'npm' }}
cache-dependency-path: ${{ inputs.cache-dependency-path }}

- name: Install
env:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/required.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ on:
type: string
required: false
default: ""
node-cache-dependency-path:
description: >-
Forwarded to node-ci.yml → actions/setup-node. Polyglot repos
whose lockfile lives in a subdirectory (e.g. viz's
`src/ResQ.Viz.Web/package-lock.json`) must set this, else
setup-node errors with "Dependencies lock file is not found".
Default empty = root-level detection (matches prior behaviour).
type: string
required: false
default: ""
rust-run-coverage:
type: boolean
required: false
Expand Down Expand Up @@ -165,6 +175,7 @@ jobs:
typecheck-cmd: ${{ inputs.node-typecheck-cmd }}
test-cmd: ${{ inputs.node-test-cmd }}
build-cmd: ${{ inputs.node-build-cmd }}
cache-dependency-path: ${{ inputs.node-cache-dependency-path }}

dotnet:
needs: [validate-lang]
Expand Down
Loading