-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.18 KB
/
ci.yml
File metadata and controls
44 lines (39 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun install
- run: bunx tsc --noEmit --project packages/spec/tsconfig.json
- run: bunx tsc --noEmit --project packages/orchestrator/tsconfig.json
- run: bunx tsc --noEmit --project packages/worker/tsconfig.json
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun install
- run: bun test packages/spec/tests/
- run: bun test packages/orchestrator/tests/
- run: bun test packages/worker/tests/
- run: bun test packages/cli/tests/commands.test.ts packages/cli/tests/version-update.test.ts packages/cli/tests/doctor.test.ts
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: docker build --target runtime -t questpie-autopilot-ci .