-
-
Notifications
You must be signed in to change notification settings - Fork 4
97 lines (79 loc) · 2.13 KB
/
Copy pathci.yml
File metadata and controls
97 lines (79 loc) · 2.13 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: CI
on:
push:
branches: [main]
paths:
- "shell/mac/**"
- "crates/**"
- "Cargo.toml"
- "Cargo.lock"
- ".github/workflows/ci.yml"
pull_request:
paths:
- "shell/mac/**"
- "crates/**"
- "Cargo.toml"
- "Cargo.lock"
- ".github/workflows/ci.yml"
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rust:
runs-on: macos-26
steps:
- uses: actions/checkout@v7
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Install jj (for component test fixtures)
run: brew install jj
- name: Cache cargo
uses: actions/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: cargo-${{ runner.os }}-
- name: Clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Test
run: cargo test --workspace
swift:
runs-on: macos-26
needs: rust
steps:
- uses: actions/checkout@v7
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install tools
run: brew install just xcodegen xcbeautify swiftlint jj
- name: Cache cargo
uses: actions/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: cargo-${{ runner.os }}-
- name: Lint Swift
run: swiftlint lint --config .swiftlint.yml --strict
- name: Build app
run: just build
- name: Test app
run: just test-app
- name: UI tests
run: just test-ui
- name: Upload xcresult on failure
if: failure()
uses: actions/upload-artifact@v7
with:
name: ui-test-xcresult
path: build/DerivedData/Logs/Test/*.xcresult
if-no-files-found: warn