Repository navigation
104 lines (83 loc) · 2.16 KB
/
Copy pathunit-tests.yml
File metadata and controls
104 lines (83 loc) · 2.16 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: Unit Tests
on:
push:
branches:
- dev
- "codex/**"
pull_request:
branches:
- dev
jobs:
frontend:
name: Frontend
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install frontend dependencies
run: bun install --frozen-lockfile
- name: Run ESLint
run: bun run lint:check
- name: Run node tooling typecheck
run: node ./node_modules/@typescript/native/bin/tsc -p tsconfig.node.json --noEmit
- name: Run app typecheck
run: bun run typecheck
- name: Run Vitest
run: bun run test
website:
name: Website
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install website dependencies
working-directory: website
run: bun install --frozen-lockfile
- name: Run website ESLint
working-directory: website
run: bun run lint
- name: Build website
working-directory: website
run: bun run build
rust:
name: Rust (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-24.04
- macos-14
- windows-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install -y \
libwebkit2gtk-4.1-dev \
build-essential \
curl \
wget \
file \
just \
libxdo-dev \
libssl-dev \
libayatana-appindicator3-dev \
librsvg2-dev
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache Rust artifacts
uses: Swatinem/rust-cache@v2
with:
cache-bin: false
workspaces: |
src-tauri -> target
- name: Run Rust tests
run: cargo test --manifest-path src-tauri/Cargo.toml