-
Notifications
You must be signed in to change notification settings - Fork 15
88 lines (72 loc) · 2.29 KB
/
Copy pathci.yml
File metadata and controls
88 lines (72 loc) · 2.29 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
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
links:
name: Check Links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check links in documentation
uses: lycheeverse/lychee-action@v2
with:
args: >-
--verbose
--no-progress
--accept 200,204,301,302,403,429
--exclude 'localhost'
--exclude '127.0.0.1'
--exclude 'x.com/i/communities'
--exclude 'github.com/.*/compare/.*\.\.\..*'
README.md
INSTALLATION.md
CHANGELOG.md
fail: true
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "24"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Test
run: npm test
- name: Test coverage
run: npm run test:coverage
continue-on-error: true
# Headless installer e2e matrix (builds+packs a tarball, runs install/uninstall
# scenarios against an in-process mock — no docker, no node-pty, no network).
# Gates the risky write/abort/idempotency paths the unit tests don't reach.
- name: E2E install scenarios
run: npm run test:e2e
hooks-windows:
name: Hook commands (windows-latest)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "24"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
# Regression guard for #108: hook commands shipped in templates/plugins
# must execute via Node child_process (cmd.exe /d /s /c on Windows), the
# same model Claude Code uses to launch hooks. On Windows there is no
# parent shell to parse `VAR=value command` prefixes, so the wrapped
# `bash -c '…'` form is the only one that works. This test fails loudly
# if the wrap regresses.
- name: Verify wrapped hook commands run on Windows
run: npx vitest run tests/installer/hook-commands.test.ts