-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (48 loc) · 1.19 KB
/
ci.yml
File metadata and controls
62 lines (48 loc) · 1.19 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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
lint-and-typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
with:
workspaces: native
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libasound2-dev
- run: npm ci
# Lint
- name: ESLint
run: npm run lint
# Rust checks
- name: Clippy
working-directory: native
run: cargo clippy -- -D warnings
- name: Rust tests
working-directory: native
run: cargo test
# Native addon build
- name: Build native addon
run: npm run build:native
# TypeScript checks
- name: Typecheck
run: npm run typecheck
# Unit tests
- name: Test
run: npm test
# Vite build
- name: Build (vite)
run: npm run build:vite