Repository navigation
58 lines (48 loc) · 1.7 KB
/
Copy pathci.yml
File metadata and controls
58 lines (48 loc) · 1.7 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
49
50
51
52
53
54
55
56
57
58
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
# Run the exact aggregate gate the pre-commit hook and `bun run
# check:all` run locally. Verbatim invocation is the contract: CI must
# not drift from the local gate. The canonical runner covers lint,
# typecheck, AGENTS.md, dups, deps, file-size, debt, coverage, and
# CI parity (which checks this very file against the gate manifest;
# escape hatches live in scripts/ci-parity-config.json).
- name: Aggregate quality checks (check:all parity)
run: bun run check:all
# Re-run the suite with the CI reporters to emit the JUnit + lcov
# artifacts the report steps and uploads below consume (aliased to
# check:coverage in scripts/ci-parity-config.json — same suite,
# different reporters).
- name: Run tests (CI reporters)
run: bun run test:ci
- name: Test timing summary
if: always()
run: bun run report:test-timing
- name: Code-quality metrics summary
if: always()
run: bun run report:quality-metrics
- name: Upload test timing artifact
if: always()
uses: actions/upload-artifact@v7
with:
name: bun-test-junit
path: test-results/junit.xml
if-no-files-found: warn
- name: Upload coverage artifact
if: always()
uses: actions/upload-artifact@v7
with:
name: bun-test-coverage
path: coverage/lcov.info
if-no-files-found: warn