-
Notifications
You must be signed in to change notification settings - Fork 5
51 lines (48 loc) · 1.39 KB
/
test.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
name: test
on:
push:
pull_request:
branches: [main]
jobs:
check-frontend:
runs-on: [ubuntu-latest]
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
- name: install app dependencies and check frontend
run: yarn && yarn lint:check && yarn format:check
test-build:
needs: check-frontend
strategy:
fail-fast: false
runs-on: [windows-latest]
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
- name: remove config pubkey
run: |
$json = Get-Content ./src-tauri/tauri.conf.json | ConvertFrom-Json
$json.tauri.key.PSObject.Properties.Remove('plugins')
$json | ConvertTo-Json -Depth 32 | Set-Content ./src-tauri/tauri.conf.json
- name: install app dependencies
run: yarn
- name: test build
uses: tauri-apps/tauri-action@v0
with:
args: "-b msi"