Skip to content

Merge pull request #395 from vercel-labs/ctate/ci-performance-regression #1117

Merge pull request #395 from vercel-labs/ctate/ci-performance-regression

Merge pull request #395 from vercel-labs/ctate/ci-performance-regression #1117

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
conformance-suite:
name: Conformance Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@11.1.3 --activate
- name: Install pinned Zig
run: bash scripts/install-zig.sh
- run: pnpm install --frozen-lockfile
- name: Conformance suite
env:
ZERO_VALIDATION_JOBS: "4"
ZERO_CONFORMANCE_CHECK_JOBS: "4"
run: pnpm run conformance:local
native-preflight:
name: Native Preflight
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@11.1.3 --activate
- name: Install pinned Zig
run: bash scripts/install-zig.sh
- run: pnpm install --frozen-lockfile
- name: Native preflight
env:
ZERO_NATIVE_TEST_PHASES: preflight
run: pnpm run native:test:local
native-runtime-cases:
name: Native Runtime Cases (${{ matrix.shard }}/6)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3, 4, 5, 6]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@11.1.3 --activate
- name: Install pinned Zig
run: bash scripts/install-zig.sh
- run: pnpm install --frozen-lockfile
- name: Native tests
env:
ZERO_NATIVE_TEST_PHASES: cases
ZERO_NATIVE_TEST_SHARD: "${{ matrix.shard }}/6"
run: pnpm run native:test:local
native-metadata-reports:
name: Native Metadata Reports
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@11.1.3 --activate
- name: Install pinned Zig
run: bash scripts/install-zig.sh
- run: pnpm install --frozen-lockfile
- name: Native metadata and reports
env:
ZERO_NATIVE_TEST_PHASES: metadata-and-reports
run: pnpm run native:test:local
native-direct-backend-artifacts:
name: Native Direct Backend Artifacts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@11.1.3 --activate
- name: Install pinned Zig
run: bash scripts/install-zig.sh
- run: pnpm install --frozen-lockfile
- name: Native direct backend artifacts
env:
ZERO_NATIVE_TEST_PHASES: direct-backend-artifacts
run: pnpm run native:test:local
native-sanitizer-smoke:
name: Native Sanitizer Smoke
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@11.1.3 --activate
- name: Install pinned Zig
run: bash scripts/install-zig.sh
- name: Native sanitizer smoke
run: pnpm run native:sanitize
command-contract-snapshots:
name: Command Contract Snapshots
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@11.1.3 --activate
- run: pnpm install --frozen-lockfile
- name: Install pinned Zig
run: bash scripts/install-zig.sh
- name: Build native compiler
run: make -C native/zero-c
- name: Command contract snapshots
run: pnpm run command-contracts:local
workspace-checks:
name: Workspace Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- name: Enable pnpm
run: |
corepack enable
corepack prepare pnpm@11.1.3 --activate
- name: Install pinned Zig
run: bash scripts/install-zig.sh
- run: pnpm install --frozen-lockfile
- name: Workspace checks
env:
VERCEL_OIDC_TOKEN: ${{ secrets.VERCEL_OIDC_TOKEN }}
run: pnpm run workspace:checks