Repository navigation
120 lines (113 loc) · 4.53 KB
/
Copy pathverify.yml
File metadata and controls
120 lines (113 loc) · 4.53 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: Verify
on:
push:
pull_request:
permissions:
contents: read
jobs:
node-quality:
runs-on: windows-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run format:check
- run: npm run check:syntax
- run: npm run lint
- run: npm run check:ci
- run: npm run release:check
- run: npm run test:frontend
- run: npm run frontend:build
- run: npm audit --audit-level=high
- run: npm run test:hooks
unit-tests:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
shard: [0, 1, 2, 3]
env:
TEST_SHARD_COUNT: 4
TEST_SHARD_INDEX: ${{ matrix.shard }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm ci --prefix plugins/hpm-local-evidence --ignore-scripts
- run: rustup default stable
- run: npm run test:unit
coverage:
runs-on: windows-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm ci --prefix plugins/hpm-local-evidence --ignore-scripts
- run: rustup default stable
- name: Execute complete original coverage commands with owned file recording windows
shell: pwsh
env:
HPM_COVERAGE_IO: ${{ github.sha }}
run: |
$ErrorActionPreference = 'Stop'
$PSNativeCommandUseErrorActionPreference = $false
$env:HPM_COVERAGE_IO_STAGE = 'proxy'
$env:HPM_COVERAGE_IO_PROXY_WINDOW = 'publication-interruption'
npm run test:coverage
$coverageExit = $LASTEXITCODE
if ($coverageExit -ne 0) { [Console]::Error.WriteLine('coverage_original_stage_failed:stage=' + $env:HPM_COVERAGE_IO_STAGE) }
node scripts/check-coverage-io-receipt.cjs
if ($LASTEXITCODE -ne 0) { throw 'Coverage I/O observation was not completed safely.' }
if ($coverageExit -ne 0) { throw 'Original proxy coverage failed; I/O evidence does not override its failure.' }
Remove-Item Env:\HPM_COVERAGE_IO_PROXY_WINDOW
$env:HPM_COVERAGE_IO_STAGE = 'client'
npm run test:client:coverage
$coverageExit = $LASTEXITCODE
if ($coverageExit -ne 0) { [Console]::Error.WriteLine('coverage_original_stage_failed:stage=' + $env:HPM_COVERAGE_IO_STAGE) }
node scripts/check-coverage-io-receipt.cjs
if ($LASTEXITCODE -ne 0) { throw 'Client coverage I/O observation was not completed safely.' }
if ($coverageExit -ne 0) { throw 'Original client coverage failed; I/O evidence does not override its failure.' }
npm run test:frontend:coverage
if ($LASTEXITCODE -ne 0) { throw 'Original frontend coverage failed.' }
integration-tests:
runs-on: windows-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run test:thinking
- run: npm run test:env
- run: npm run test:integration
rust-tests:
runs-on: windows-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22
cache: npm
- run: rustup default stable
- uses: Swatinem/rust-cache@42dc69e1aa15d09112580998cf2ef0119e2e91ae # v2
with:
workspaces: src-tauri
- run: npm ci
- run: npm run release:prepare
- run: npm run test:recovery-native
- run: cargo fmt --manifest-path src-tauri/Cargo.toml -- --check
- run: cargo clippy --manifest-path src-tauri/Cargo.toml --all-targets -- -D warnings
- run: npm run test:rust
- run: cargo install cargo-audit --version 0.22.2 --locked
- run: node scripts/check-windows-rust-audit.js
- run: cargo audit --file native/context-recovery-key/Cargo.lock