-
Notifications
You must be signed in to change notification settings - Fork 0
104 lines (83 loc) · 2.65 KB
/
Copy pathci.yml
File metadata and controls
104 lines (83 loc) · 2.65 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
102
103
104
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
merge_group:
types: [checks_requested]
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
verify:
name: Verify & Test (${{ matrix.os }}, Node ${{ matrix.node-version }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
node-version: [20.x, 22.x]
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Lint & Static Checks
run: npm run lint
- name: TypeScript Compile & Typecheck
run: npm run build && npm run typecheck
- name: Fixture Budget Enforcement
run: npm run check:fixture-budgets
- name: Core Unit & Determinism Tests
run: |
npm run test:schema
npm run test:determinism
npm run test:fixtures
- name: Security & Threat Model Probes
run: npm run test:security && npm run test:redaction
- name: GitHub Mock & Integration Suite
run: npm run test:github
- name: CLI Process Smoke Tests
run: npm run test:cli
security-audit:
name: Dependency Security Audit
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 22.x
cache: 'npm'
- name: Audit Production Dependencies
run: npm audit --audit-level=high --omit=dev
full-verify:
name: Full Verify
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 22.x
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run the complete repository verification chain
run: npm run verify