-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (46 loc) · 1.23 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
name: test
on:
push:
pull_request:
branches: [main]
jobs:
check-frontend:
runs-on: [ubuntu-latest]
steps:
- name: checkout repo
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"
- name: install app dependencies and check frontend
run: yarn && yarn lint:check && yarn format:check
test-build:
needs: check-frontend
if: ${{ github.ref == 'refs/heads/main' }}
strategy:
fail-fast: false
runs-on: [windows-latest]
steps:
- name: checkout repo
uses: actions/checkout@v3
- 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@v3
with:
node-version: 18
cache: "yarn"
- name: install app dependencies
run: yarn
- name: test build
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: "-b msi"