mirror of
https://github.com/stablyai/orca.git
synced 2026-10-17 16:02:55 +00:00
build(ssh): syntax-check runtime builder
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -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 `
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user