chore(deps): bump actions/checkout from 6.0.3 to 7.0.0 #136
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: read-all | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 | |
| - run: bun install --frozen-lockfile | |
| - name: Verify dependencies are pinned | |
| run: bun run lint:deps | |
| - run: bun run typecheck | |
| - run: bun run test -- --coverage | |
| - run: bun run build | |
| node-compat: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 | |
| - run: bun install --frozen-lockfile | |
| - run: bun run build | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 18.18.0 | |
| - name: Smoke test minimum Node version | |
| run: | | |
| node --input-type=module <<'EOF' | |
| import { createEngine } from './dist/index.mjs' | |
| if (typeof Symbol.asyncDispose !== 'symbol') { | |
| throw new Error('Symbol.asyncDispose is unavailable') | |
| } | |
| const storage = { | |
| initialize: async () => {}, | |
| createRun: async () => { throw new Error('not used') }, | |
| claimNextRun: async () => null, | |
| heartbeatRun: async () => true, | |
| getRun: async () => null, | |
| getStepResults: async () => [], | |
| saveStepResult: async () => true, | |
| updateRunStatus: async () => true, | |
| updateClaimedRunStatus: async () => true, | |
| close: () => {}, | |
| } | |
| const engine = createEngine({ storage, workflows: [] }) | |
| const stream = engine.stream() | |
| if (typeof stream[Symbol.asyncDispose] !== 'function') { | |
| throw new Error('ResultStream is not AsyncDisposable') | |
| } | |
| await stream[Symbol.asyncDispose]() | |
| EOF | |
| node-sqlite: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 | |
| - run: bun install --frozen-lockfile | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 24 | |
| - name: Run the node:sqlite adapter tests on Node | |
| run: node node_modules/.bin/vitest run src/storage/__tests__/sqlite-node-builtin.test.ts |