diff --git a/.github/workflows/ssh-relay-runtime-artifacts.yml b/.github/workflows/ssh-relay-runtime-artifacts.yml index 605235033af..bd2e5713c30 100644 --- a/.github/workflows/ssh-relay-runtime-artifacts.yml +++ b/.github/workflows/ssh-relay-runtime-artifacts.yml @@ -105,6 +105,8 @@ jobs: set -euo pipefail node --check config/scripts/ssh-relay-runtime-reproducibility.mjs node --check config/scripts/ssh-relay-runtime-reproducibility.test.mjs + node --check config/scripts/build-ssh-relay-runtime.mjs + node --check config/scripts/ssh-relay-runtime-build.test.mjs pnpm exec vitest run --config config/vitest.config.ts \ config/scripts/ssh-relay-node-release-verification.test.mjs \ config/scripts/ssh-relay-node-tar-inspection.test.mjs \ @@ -269,6 +271,10 @@ jobs: if ($LASTEXITCODE -ne 0) { throw 'runtime reproducibility script syntax check failed' } node --check config/scripts/ssh-relay-runtime-reproducibility.test.mjs if ($LASTEXITCODE -ne 0) { throw 'runtime reproducibility test syntax check failed' } + node --check config/scripts/build-ssh-relay-runtime.mjs + if ($LASTEXITCODE -ne 0) { throw 'runtime build script syntax check failed' } + node --check config/scripts/ssh-relay-runtime-build.test.mjs + if ($LASTEXITCODE -ne 0) { throw 'runtime build test syntax check failed' } pnpm exec vitest run --config config/vitest.config.ts ` config/scripts/ssh-relay-node-release-verification.test.mjs ` config/scripts/ssh-relay-node-tar-inspection.test.mjs ` diff --git a/config/scripts/build-ssh-relay-runtime.mjs b/config/scripts/build-ssh-relay-runtime.mjs index 8bf4725b455..2ae076aafc0 100644 --- a/config/scripts/build-ssh-relay-runtime.mjs +++ b/config/scripts/build-ssh-relay-runtime.mjs @@ -1,5 +1,3 @@ -#!/usr/bin/env node - import { execFile } from 'node:child_process' import { mkdir, readFile, rm } from 'node:fs/promises' import { dirname, isAbsolute, join, relative, resolve, sep } from 'node:path' diff --git a/config/scripts/ssh-relay-runtime-workflow.test.mjs b/config/scripts/ssh-relay-runtime-workflow.test.mjs index 44966859d41..9d701eaa429 100644 --- a/config/scripts/ssh-relay-runtime-workflow.test.mjs +++ b/config/scripts/ssh-relay-runtime-workflow.test.mjs @@ -64,9 +64,15 @@ describe('SSH relay runtime artifact workflow', () => { expect(source).toContain( 'node --check config/scripts/ssh-relay-runtime-reproducibility.test.mjs' ) + expect( + source.match(/node --check config\/scripts\/build-ssh-relay-runtime\.mjs/g) + ).toHaveLength(2) + expect( + source.match(/node --check config\/scripts\/ssh-relay-runtime-build\.test\.mjs/g) + ).toHaveLength(2) expect(source.match(/ssh-relay-node-pty-build\.test\.mjs/g)).toHaveLength(2) expect(source.match(/ssh-relay-node-pty-windows-build-determinism\.test\.mjs/g)).toHaveLength(2) - expect(source.match(/ssh-relay-runtime-build\.test\.mjs/g)).toHaveLength(2) + expect(source.match(/ssh-relay-runtime-build\.test\.mjs/g)).toHaveLength(4) expect(source.match(/--work-directory/g)).toHaveLength(2) expect(source).toContain('work_directory="$RUNNER_TEMP/orca-ssh-relay-runtime-build-work"') expect(source).toContain(