-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (34 loc) · 959 Bytes
/
ci.yml
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
name: 'ci'
on:
push:
branches:
- master
jobs:
svelte-check:
runs-on: "ubuntu-22.04"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: install packages
run: npm install --package-lock=false
- name: run check
run: npm run check
cargo-test:
runs-on: "ubuntu-22.04"
env:
RUST_BACKTRACE: "1"
steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
version: 1.0
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: "src-tauri"
- name: run tests
run: cd src-tauri && cargo test