-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (64 loc) · 2.2 KB
/
Copy pathkernel-zero.yml
File metadata and controls
67 lines (64 loc) · 2.2 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
name: Kernel Zero
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
# The gate attests its own protection: the public rules endpoint for main must list this
# job as a required status check, or the run fails. Anyone can read that endpoint without a token.
- name: Attest that main requires this check
env:
GH_TOKEN: ${{ github.token }}
run: |
gh api "repos/${GITHUB_REPOSITORY}/rules/branches/main" \
--jq '[.[] | select(.type == "required_status_checks") | .parameters.required_status_checks[].context] | index("verify") != null' \
| grep -qx true
- uses: actions/setup-node@v4
with:
cache: npm
node-version-file: .node-version
- run: npm ci
- run: npm run prisma:generate
- run: npm run contracts:check
- run: npm run check:architecture
- name: Validate repository policy
run: npm run validator:self
- name: Validate workflow hygiene
run: npm run validator:workflow
- name: Validate the Python profile fixture
run: npm run validator:python
- name: Preserve deterministic evidence
if: always()
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: kernel-zero-evidence
path: .kernel-zero/evidence.json
retention-days: 14
- run: npm run prisma:validate
env:
DATABASE_URL: postgresql://kernel_zero:kernel_zero@127.0.0.1:5432/kernel_zero
- run: npm run typecheck
- run: npm run lint
- run: npm run test:unit
- run: npm run test:architecture
- run: npm run test:integration
- run: npm run build
- run: npm run validator:package:check
- run: npm run validator:pack
- name: Preserve validator tarball
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: kernel-zero-validator
path: dist/*.tgz
retention-days: 14
- run: npx playwright install --with-deps chromium
- run: npm run test:browser