-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (74 loc) · 2.33 KB
/
Copy pathci.yml
File metadata and controls
80 lines (74 loc) · 2.33 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
74
75
76
77
78
79
80
name: CI
on:
push:
branches: [main]
paths-ignore:
- "*.md"
- "docs/**"
- "AGENTS.md"
- "CONTRIBUTING.md"
- "SECURITY.md"
pull_request:
paths-ignore:
- "*.md"
- "docs/**"
- "AGENTS.md"
- "CONTRIBUTING.md"
- "SECURITY.md"
workflow_dispatch:
permissions:
contents: read
jobs:
rust:
runs-on: [self-hosted, node-b, linux, x64]
env:
CARGO_BUILD_JOBS: 1
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.95"
components: rustfmt,clippy
- run: cargo fmt --all -- --check
- run: cargo check --workspace --exclude rtbit-desktop --no-default-features --features default-tls
- run: cargo test --workspace --exclude rtbit-desktop --no-default-features --features default-tls
- run: cargo clippy --workspace --exclude rtbit-desktop --no-default-features --features default-tls -- -D warnings
- run: cargo build --profile release-github -p rtbit --no-default-features --features default-tls
webui:
runs-on: [self-hosted, node-b, linux, x64]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
cache-dependency-path: crates/librtbit/webui/package-lock.json
- working-directory: crates/librtbit/webui
run: npm ci --no-audit --no-fund
- working-directory: crates/librtbit/webui
run: npm test
- working-directory: crates/librtbit/webui
run: npm run lint
- working-directory: crates/librtbit/webui
run: npm run build
gui-e2e:
runs-on: [self-hosted, node-b, linux, x64]
needs: webui
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
cache-dependency-path: crates/librtbit/webui/package-lock.json
- working-directory: crates/librtbit/webui
run: npm ci --no-audit --no-fund
- working-directory: crates/librtbit/webui
run: npx playwright install --with-deps chromium
- working-directory: crates/librtbit/webui
run: npm run test:e2e
website:
runs-on: [self-hosted, node-b, linux, x64]
steps:
- uses: actions/checkout@v7
- run: ci/tasks/website-check