Skip to content

Commit 5808ecb

Browse files
hyperpolymathclaude
andcommitted
ci: add engine CI workflow; expose test/fmt tasks; cover engine in check task
- .github/workflows/ci.yml: fmt + lint + typecheck + 35 engine tests on push/PR (SHA-pinned actions; setup-deno v2.0.4 resolved from upstream tags) - deno.json: new test and fmt:check tasks; check task now also covers packages/shared/src/matching/ Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent e7c1a1d commit 5808ecb

3 files changed

Lines changed: 37 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# SPDX-License-Identifier: MPL-2.0
2+
name: CI
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
permissions:
11+
contents: read
12+
jobs:
13+
engine:
14+
name: Matching engine + API (fmt, lint, typecheck, tests)
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 10
17+
steps:
18+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
19+
- uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2.0.4
20+
with:
21+
deno-version: v2.x
22+
- name: Format check (engine)
23+
run: deno task fmt:check
24+
- name: Lint + typecheck (engine, legacy domain, API)
25+
run: deno task check
26+
- name: Engine unit tests
27+
run: deno task test

deno.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
"dev:web": "deno task --cwd apps/web dev",
1313
"dev:mobile": "echo 'apps/mobile is an Expo project; run `cd apps/mobile && npm install && npm run start` (Expo CLI requires Node — see Class C carve-out in README)'",
1414
"build:web": "deno task --cwd apps/web build",
15-
"check": "deno check apps/api/main.ts && deno lint apps/api && deno check packages/shared/src/domain.js"
15+
"check": "deno check apps/api/main.ts && deno lint apps/api && deno check packages/shared/src/domain.js && deno check packages/shared/src/matching/index.js && deno lint packages/shared/src/matching",
16+
"test": "deno test --allow-read packages/shared/src/matching/",
17+
"fmt:check": "deno fmt --check packages/shared/src/matching/"
1618
},
1719
"fmt": {
1820
"useTabs": false,

deno.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)