mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 02:14:01 +00:00
Supersedes #161 by @michaelhan1208, ported onto the current component layout with fixes from review. Verified before merge: format, package boundaries, unit suite, build, and the browser tracking suite; a browser harness for the change where one applies; adversarial review applied. Co-authored-by: michaelhan1208 <[email protected]>
90 lines
2.3 KiB
YAML
90 lines
2.3 KiB
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ci-${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
verify:
|
|
name: Node ${{ matrix.node }}
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
node: [24.14.0, 26.x]
|
|
env:
|
|
PUPPETEER_SKIP_DOWNLOAD: '1'
|
|
GEV_REQUIRE_ALLOCATION_GATE: ${{ matrix.node == '24.14.0' && '1' || '0' }}
|
|
steps:
|
|
- name: Check out source
|
|
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
|
with:
|
|
node-version: ${{ matrix.node }}
|
|
cache: npm
|
|
|
|
- name: Install locked dependencies
|
|
run: npm ci
|
|
|
|
- name: Run setup policy checks
|
|
run: npm run doctor -- --json
|
|
|
|
- name: Check adopted formatting
|
|
run: npm run format:check
|
|
|
|
- name: Check package boundaries
|
|
run: npm run check:boundaries
|
|
|
|
- name: Run unit tests
|
|
run: npm test
|
|
|
|
- name: Build production bundle
|
|
run: npm run build
|
|
|
|
windows-onboarding:
|
|
name: Windows onboarding
|
|
runs-on: windows-latest
|
|
timeout-minutes: 20
|
|
env:
|
|
PUPPETEER_SKIP_DOWNLOAD: '1'
|
|
GEV_REQUIRE_ALLOCATION_GATE: '0'
|
|
steps:
|
|
- name: Check out source
|
|
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
|
with:
|
|
node-version: 24.14.0
|
|
cache: npm
|
|
|
|
- name: Run the Pinokio install path
|
|
run: node scripts/pinokio-install.mjs
|
|
|
|
- name: Check adopted formatting
|
|
run: npm run format:check
|
|
|
|
- name: Check package boundaries
|
|
run: npm run check:boundaries
|
|
|
|
- name: Run focused onboarding tests
|
|
run: node --test src/setupDoctor.test.mjs src/pinokioEnvironment.test.mjs src/pinokioPreflight.test.mjs src/pinokioLauncherContract.test.mjs src/keySetupHardening.test.mjs src/mapStartup.test.mjs src/hudSummaryResponse.test.mjs
|
|
|
|
- name: Build production bundle
|
|
run: npm run build
|