Repository navigation
101 lines (83 loc) · 2.4 KB
/
Copy pathci.yml
File metadata and controls
101 lines (83 loc) · 2.4 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
98
99
100
101
name: CI
# Windows/macOS-first CI. CodexAssistant does not support Linux as a runtime,
# development, or release target; keep validation aligned with the supported
# desktop platforms.
on:
push:
branches: [main]
tags: ['v*']
paths-ignore:
- '**.md'
- 'docs/**'
- '.github/dependabot.yml'
- '.github/ISSUE_TEMPLATE/**'
pull_request:
branches: [main]
paths-ignore:
- '**.md'
- 'docs/**'
- '.github/dependabot.yml'
- '.github/ISSUE_TEMPLATE/**'
workflow_dispatch:
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
frontend:
name: Frontend (macOS)
runs-on: macos-14
defaults:
run:
working-directory: apps/codex-assistant-manager
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: npm
cache-dependency-path: apps/codex-assistant-manager/package-lock.json
- name: npm ci
run: npm ci
- name: TypeScript check
run: npm run check
- name: Vitest
run: npm run test
- name: Vite build
run: npm run vite:build
rust-platform:
name: Rust (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [macos-14, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Rust toolchain
run: |
rustup toolchain install stable --profile minimal --component clippy --component rustfmt
rustup default stable
- name: Cache Rust artifacts
uses: Swatinem/rust-cache@v2
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: npm
cache-dependency-path: apps/codex-assistant-manager/package-lock.json
- name: Build frontend (required by tauri::generate_context!)
working-directory: apps/codex-assistant-manager
run: |
npm ci
npm run vite:build
- name: cargo fmt --check
run: cargo fmt --all -- --check
- name: cargo clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: cargo test
run: cargo test --workspace --no-fail-fast