forked from Horuse/Splitwave
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (46 loc) · 1.39 KB
/
Copy pathci.yml
File metadata and controls
58 lines (46 loc) · 1.39 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
name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
# Splitwave ships under MIT; a copyleft dependency would silently revoke that.
# See src-tauri/deny.toml.
licenses:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cargo deny
uses: EmbarkStudios/cargo-deny-action@v2
with:
manifest-path: src-tauri/Cargo.toml
# Only what this gate is for. `advisories` would fail the build on an
# unrelated CVE published upstream, which is a separate concern.
command: check licenses bans
check:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo build
uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
- name: Install JS deps
run: bun install --frozen-lockfile
- name: Cargo test (also regenerates ts-rs bindings)
working-directory: src-tauri
run: cargo test
- name: TS-RS bindings up to date
run: git diff --exit-code -- src/lib/modules/pipeline/generated
- name: Svelte / TypeScript check
run: bun run check