Thing/.github/workflows/portable-contracts.yml
Libby f25a43d5f8
Some checks failed
Portable Eve contracts and browser lowering / docker eve-browser-lowering (pull_request) Failing after 4m2s
Portable Eve contracts and browser lowering / docker eve-contracts (pull_request) Failing after 2m18s
CI: windows-latest leg is workflow_dispatch only (no Windows runner exists)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 13:32:42 +00:00

51 lines
1.6 KiB
YAML

name: Portable Eve contracts and browser lowering
on:
push:
branches:
- main
- "codex/**"
pull_request:
workflow_dispatch:
jobs:
contracts-and-browser:
name: ${{ matrix.os }} ${{ matrix.package }}
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
# No Windows runner exists: the windows-latest leg runs on workflow_dispatch only (GitHub or a
# Windows runner), the docker leg gates push and PR. Windows push/PR triggers return in the PR
# that registers a Windows runner.
os: ${{ fromJSON(github.event_name == 'workflow_dispatch' && '["windows-latest", "docker"]' || '["docker"]') }}
package: [eve-contracts, eve-browser-lowering]
steps:
- name: Check out Eve
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
cache-dependency-path: packages/${{ matrix.package }}/package-lock.json
- name: Install package dependencies
working-directory: packages/${{ matrix.package }}
run: npm ci
- name: Build and test source
working-directory: packages/${{ matrix.package }}
run: npm test
- name: Reject stale generated output
shell: pwsh
run: |
$changed = git diff --ignore-space-at-eol --name-only -- packages/${{ matrix.package }}
if ($changed) {
git diff --ignore-space-at-eol -- packages/${{ matrix.package }}
throw "The package build changed checked-in generated output."
}