Skip to content

Commit 0ec4aec

Browse files
committed
fix(ci): deduplicate Linux Node setup
1 parent 27d71cf commit 0ec4aec

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/linux-binaries.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@ jobs:
9191
node-version-file: package.json
9292
package-manager-cache: false
9393

94-
- name: Setup Node.js
95-
uses: actions/setup-node@v5
96-
with:
97-
node-version-file: package.json
98-
package-manager-cache: false
99-
10094
- name: Build plugin Host resources
10195
run: |
10296
bun install --cwd src/apps/extension-host --frozen-lockfile

scripts/check-github-config.test.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,9 @@ test('Linux binary packaging uses the shared locked version projection contract'
852852
);
853853
const inputs = workflow.on.workflow_call.inputs;
854854
const steps = workflow.jobs.build.steps;
855+
const nodeSteps = steps.filter(
856+
(step) => step.name === 'Setup Node.js',
857+
);
855858
const nodeIndex = steps.findIndex(
856859
(step) => step.name === 'Setup Node.js',
857860
);
@@ -872,6 +875,7 @@ test('Linux binary packaging uses the shared locked version projection contract'
872875
assert.equal(inputs.upload_artifacts.default, true);
873876
assert.equal(inputs.cache_write.default, false);
874877
assert.equal(inputs.validate_relay_image.default, true);
878+
assert.equal(nodeSteps.length, 1);
875879
assert.equal(steps[nodeIndex].uses, 'actions/setup-node@v5');
876880
assert.equal(steps[nodeIndex].with['node-version-file'], 'package.json');
877881
assert.ok(

0 commit comments

Comments
 (0)