Repository navigation
52 lines (49 loc) · 1.54 KB
/
Copy pathcheck.yml
File metadata and controls
52 lines (49 loc) · 1.54 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
name: check
on:
push:
branches: [main]
pull_request:
concurrency:
group: check-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
with:
workspaces: . -> target
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: apps/desktop/package-lock.json
- name: Install Linux desktop dependencies
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf pkg-config
- name: Install frontend dependencies
working-directory: apps/desktop
run: npm ci
- name: Rust format
run: cargo fmt --all -- --check
- name: Rust tests
run: cargo test -p codex-notify-core -p codex-notify-hook -p codex-notify-cli
- name: Stage Hook sidecar
working-directory: apps/desktop
run: npm run stage:hook
- name: Check Tauri backend
run: cargo check -p codex-notify-desktop
- name: Frontend tests
working-directory: apps/desktop
run: npm test
- name: Frontend build
working-directory: apps/desktop
run: npm run build