-
-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (67 loc) · 1.78 KB
/
quality.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
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
name: Quality
on:
pull_request:
jobs:
core:
name: Core (Rust)
runs-on: ubuntu-latest
defaults:
run:
working-directory: core
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo test --all-features
webapp:
name: Webapp (React)
runs-on: ubuntu-latest
defaults:
run:
working-directory: webapp
steps:
- uses: actions/checkout@v4
- name: Setup Webapp
id: prepare-webapp
uses: ./.github/actions/prepare_pnpm
with:
working-directory: webapp
- name: Lint
run: |
pnpm run lint
- name: Tests
run: |
pnpm run test
- name: Build
run: |
pnpm run build
## Comment Note
## Tauri Build is slow. Making CI/CD run costly and longer on each PR. If this is a problem, we can add a Tauri build job.
##
# desktop:
# name: Desktop (Tauri)
# strategy:
# fail-fast: false
# matrix:
# include:
# - platform: "macos-latest" # for Arm based macs (M1 and above).
# args: "--target aarch64-apple-darwin"
# # - platform: "macos-latest" # for Intel based macs.
# # args: "--target x86_64-apple-darwin"
# # - platform: "ubuntu-22.04"
# # args: ""
# # - platform: "windows-latest"
# # args: ""
# runs-on: ${{ matrix.platform }}
# defaults:
# run:
# working-directory: desktop
# steps:
# - uses: actions/checkout@v4
# - name: Setup Tauri
# id: prepare-tauri
# uses: ./.github/actions/prepare_tauri
# with:
# platform: ${{ matrix.platform }}
# - name: Build
# run: |
# pnpm run build