-
Notifications
You must be signed in to change notification settings - Fork 8
63 lines (52 loc) · 1.48 KB
/
ci.yml
File metadata and controls
63 lines (52 loc) · 1.48 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
name: CI
on:
push:
branches: [main, "v*"]
pull_request:
branches: [main]
jobs:
rust:
name: Rust · check + clippy + fmt
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
run: |
rustup show active-toolchain || rustup toolchain install stable
rustup component add clippy rustfmt
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: cargo fmt --check
run: cargo fmt --all -- --check
- name: cargo check --workspace
run: cargo check --workspace --all-targets
- name: cargo clippy
run: cargo clippy --workspace --all-targets -- -D warnings
frontend:
name: Frontend · tsc --noEmit
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: frontend/nf-components
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
cache-dependency-path: frontend/nf-components/package-lock.json
- name: npm install
run: npm install --no-audit --no-fund
- name: tsc --noEmit
run: npx tsc --noEmit