-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (33 loc) · 1.1 KB
/
ci.yml
File metadata and controls
45 lines (33 loc) · 1.1 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check:
name: Check & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Check (no embedding)
run: cargo check --no-default-features
- name: Check (with embedding)
run: cargo check
- name: Test (no embedding)
run: cargo test --no-default-features
- name: Test (with embedding)
run: cargo test
- name: Plugin lifecycle tests
run: node --test claude-plugin/scripts/lifecycle.test.js claude-plugin/scripts/lifecycle.e2e.test.js claude-plugin/scripts/auto-update.test.js claude-plugin/scripts/session-init.test.js scripts/release-smoke.test.js
- name: Clippy (no embedding)
run: cargo clippy --no-default-features -- -D warnings
- name: Clippy (with embedding)
run: cargo clippy -- -D warnings