Repository navigation
51 lines (48 loc) · 1.61 KB
/
Copy pathci.yml
File metadata and controls
51 lines (48 loc) · 1.61 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
name: ci
on:
push:
branches: [main, work]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
# @cutils/ffi builds a Rust staticlib/cdylib in its build script
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: packages/ffi/native
- run: pnpm install --frozen-lockfile
# a warm pnpm store cache restores scriptc's toolchain without exec bits
- run: find node_modules/.pnpm -path '*@scriptc+cli-*/dist/lib/*' -type f -exec chmod +x {} +
- run: pnpm change check
- run: node --test scripts/changelog-root.test.mjs
- run: pnpm -r build
- run: pnpm -r test
- run: pnpm smoke:pack
- run: pnpm docs:build
scriptc-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
# @cutils/ffi's gate links build/libcutils_ffi_echo.a, built by `pnpm -r build`
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: packages/ffi/native
- run: pnpm install --frozen-lockfile
# a warm pnpm store cache restores scriptc's toolchain without exec bits
- run: find node_modules/.pnpm -path '*@scriptc+cli-*/dist/lib/*' -type f -exec chmod +x {} +
- run: pnpm -r build
- run: scripts/scriptc-gate.sh