-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (42 loc) · 1.2 KB
/
Copy pathci.yml
File metadata and controls
48 lines (42 loc) · 1.2 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
45
46
47
48
name: CI
on:
push:
branches: [main]
pull_request:
concurrency:
group: ci-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
# Warms the bun install cache once so the parallel jobs below mostly
# restore rather than reinstall from the network.
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-workbench
typecheck:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-workbench
- run: bun run typecheck
lint:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-workbench
- run: bun run lint
- run: bun run fmt:check
# A single fast pass over every workspace's tests. DB-gated suites
# skip themselves when DATABASE_URL is unset —
# see test/db-gate.ts — so this job needs no Postgres service.
unit:
needs: setup
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-workbench
- run: bun run test