-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (57 loc) · 1.75 KB
/
Copy pathci.yml
File metadata and controls
73 lines (57 loc) · 1.75 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
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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
name: Verify Windows build
runs-on: windows-latest
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 22
cache: npm
cache-dependency-path: package-lock.json
- name: Set up Rust
uses: dtolnay/rust-toolchain@4cda84d5c5c54efe2404f9d843567869ab1699d4 # stable
with:
toolchain: stable
- name: Cache Rust build
uses: Swatinem/rust-cache@42dc69e1aa15d09112580998cf2ef0119e2e91ae # v2
with:
workspaces: "src-tauri -> target"
- name: Install frontend dependencies
run: npm.cmd ci
- name: Verify third-party dependency notices
shell: pwsh
run: |
npm.cmd run notices
if ($LASTEXITCODE -ne 0) {
throw "Third-party notice generation failed."
}
git diff --exit-code -- THIRD_PARTY_NOTICES.md
- name: Check TypeScript
run: npm.cmd run check
- name: Check project site TypeScript
run: npm.cmd run check:site
- name: Run frontend tests
run: npm.cmd run test:frontend
- name: Build frontend
run: npm.cmd run build
- name: Build project site
run: npm.cmd run build:site
- name: Run Rust tests
run: cargo test --locked --manifest-path src-tauri/Cargo.toml