-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (40 loc) · 1.04 KB
/
verify_backend.yaml
File metadata and controls
45 lines (40 loc) · 1.04 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
on:
pull_request:
paths:
- "src-tauri/**"
- '.github/workflows/verify_backend.yaml'
branches:
- main
jobs:
test_backend:
name: Testing backend on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v3
- name: install Rust and cargo
uses: brndnmtthws/rust-action-rustup@v1
- name: install dependencies
run: |
sudo apt update
sudo apt install libwebkit2gtk-4.0-dev \
build-essential \
curl \
wget \
libssl-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
librsvg2-dev
if: matrix.os == 'ubuntu-latest'
- name: install node
uses: actions/setup-node@v3
- name: npm install and build (needed for tauri)
run: |
npm install
npm run tauri build
- name: run tests
run: |
cd src-tauri
cargo test