Repository navigation
72 lines (53 loc) · 1.77 KB
/
Copy pathci.yml
File metadata and controls
72 lines (53 loc) · 1.77 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
TYPST_VERSION: "0.14.2"
TYPST_LINUX_X64_SHA256: "a6044cbad2a954deb921167e257e120ac0a16b20339ec01121194ff9d394996d"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm
- name: Install Typst
run: |
curl -fsSL -o typst.tar.xz "https://github.com/typst/typst/releases/download/v${TYPST_VERSION}/typst-x86_64-unknown-linux-musl.tar.xz"
echo "${TYPST_LINUX_X64_SHA256} typst.tar.xz" | sha256sum -c -
tar -xJf typst.tar.xz
sudo mv typst-x86_64-unknown-linux-musl/typst /usr/local/bin/typst
typst --version
- name: Install dependencies
run: npm ci
- name: Dependency audit
run: npm audit --audit-level=moderate
- name: Verify Typst version pin
run: node scripts/check-typst-version.mjs
- name: Template schema/sample sync
run: node scripts/check-template-sync.mjs
- name: Vendored offline package check
run: node scripts/check-vendored-packages.mjs
- name: Lint
run: npm run lint
- name: Script syntax check
run: npm run check:scripts
- name: Format check
run: npm run format:check
- name: Build
run: npm run build
- name: Unit & integration tests
run: npm test
- name: Forge smoke
run: npm run forge:smoke
- name: Visual regression
run: npm run test:visual
- name: Package contents check
run: npm run pack:check
- name: Docker build
run: docker build --build-arg TYPST_SHA256="${TYPST_LINUX_X64_SHA256}" -t forge-ci .