Skip to content

fix(ci): stabilize sbom attestation contract in npm publish #48

fix(ci): stabilize sbom attestation contract in npm publish

fix(ci): stabilize sbom attestation contract in npm publish #48

name: Migration Gates
on:
pull_request:
push:
branches:
- main
- master
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
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: 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
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
lfs: false
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: "20"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Setup Java 21
if: matrix.suite == 'tauri-rust-suite'
uses: actions/setup-java@v5
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 }}