-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (44 loc) · 1.05 KB
/
ci.yaml
File metadata and controls
59 lines (44 loc) · 1.05 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
name: CI
on:
- push
- pull_request
env:
CARGO_TERM_COLOR: always
jobs:
backend:
runs-on: ubuntu-24.04-arm
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Cache Rust build
uses: Swatinem/rust-cache@v2
with:
workspaces: "backend -> target"
- name: Build the project
run: cargo build
- name: Lint the project
run: cargo clippy -- -A unused_variables
- name: Run tests
run: cargo test
frontend:
runs-on: ubuntu-24.04-arm
defaults:
run:
working-directory: react-app
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v6
with:
node-version: "22.x"
cache: "npm"
cache-dependency-path: "react-app/package-lock.json"
- name: Install dependencies
run: npm i
- name: Build
run: npm run build
- name: Lint
run: npm exec biome lint