-
Notifications
You must be signed in to change notification settings - Fork 1
124 lines (107 loc) · 3.68 KB
/
Copy pathmigration-gates.yml
File metadata and controls
124 lines (107 loc) · 3.68 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
121
122
123
124
name: Migration Gates
on:
pull_request:
push:
branches:
- main
- master
jobs:
migration-gates:
name: ${{ matrix.suite }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- suite: desktop-migration-suite
command: npm run test:migration
- suite: foundation-rollout-boundary-suite
command: npm run test:foundation:rollout-boundary
- suite: wasm-parity-strict-suite
command: npm run test:wasm:parity:gates
- suite: tauri-rust-suite
command: npm run test:tauri
- suite: mobile-pipeline-contract-suite
command: npm run test:mobile:contracts
- suite: pathbridge-strict-schema-suite
command: npm run verify:pathbridge:strict
- suite: sbom-policy-contract-suite
command: npm run verify:sbom -- --contract-only
- suite: sbom-attestation-policy-contract-suite
command: npm run verify:sbom:attestation -- --contract-only
- suite: sidecar-signature-policy-contract-suite
command: npm run verify:sidecar:signatures -- --contract-only
- suite: license-policy-contract-suite
command: npm run test:license:contract
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Setup Java 21
if: matrix.suite == 'tauri-rust-suite'
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- name: Setup Rust toolchain
if: matrix.suite == 'tauri-rust-suite'
shell: pwsh
run: |
if (-not (Get-Command rustup -ErrorAction SilentlyContinue)) {
Write-Host "rustup not found on runner, bootstrapping rustup-init..."
Invoke-WebRequest -Uri "https://win.rustup.rs/x86_64" -OutFile "rustup-init.exe"
.\rustup-init.exe -y --profile minimal --default-toolchain stable
"$env:USERPROFILE\.cargo\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
$env:Path += ";$env:USERPROFILE\.cargo\bin"
}
rustup set profile minimal
rustup toolchain install stable --profile minimal --no-self-update
rustup default stable
rustc --version
cargo --version
- name: Run gate
run: ${{ matrix.command }}
route-registry-contract-gates:
name: route-registry-contract-gates
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run route registry contract tests
run: npx jest src/routes/registry.contract.test.ts --no-coverage --runInBand
agent-workspace-contract-gates:
name: agent-workspace-contract-gates
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run agent-workspace contract suites
run: |
npm run test:agent-workspace:contracts
npm run test:conversation-turn-cache:durability