-
Notifications
You must be signed in to change notification settings - Fork 122
32 lines (30 loc) · 1.06 KB
/
Copy pathci.yml
File metadata and controls
32 lines (30 loc) · 1.06 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
name: CI
on:
push:
branches:
- main
- test/**
- fix/**
- feat/**
pull_request:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
# 24: test infrastructure uses node:module registerHooks (sync hooks, Node 22.15+)
node-version: 24
# -logger shell hook tests need real zsh (not included in ubuntu runner by default)
- run: sudo apt-get update -qq && sudo apt-get install -y -qq zsh
- run: npm install --no-fund --no-audit --ignore-scripts
# --ignore-scripts (supply-chain hardening; retained) skips native compilation;
# cli/PTY tests need node-pty, so rebuild it explicitly
- run: npm rebuild node-pty
# Static serving / SSR injection tests need real dist/
- run: npm run build
# Full suite: fast unit tier + the CCV_TEST_CLI-gated CLI/server integration tier
# (a superset of `npm test`, which developers use for the fast local loop).
- run: npm run test:cli