-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (60 loc) · 1.78 KB
/
Copy pathci.yml
File metadata and controls
74 lines (60 loc) · 1.78 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
73
74
name: CI
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
# ---------------------------------------------------------------------------
# Rust — test the whole workspace
# ---------------------------------------------------------------------------
rust:
name: Rust tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Test
run: cargo test --workspace
# ---------------------------------------------------------------------------
# Dashboard — TypeScript build check
# ---------------------------------------------------------------------------
dashboard:
name: Dashboard build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
run_install: false
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
cache-dependency-path: dashboard/pnpm-lock.yaml
- name: Install dependencies
working-directory: dashboard
run: pnpm install --frozen-lockfile
- name: Type-check and build
working-directory: dashboard
run: pnpm build
- name: Run unit and integration tests
working-directory: dashboard
run: pnpm test -- --run