78 lines
1.8 KiB
YAML
78 lines
1.8 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@v4
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v4
|
|
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: 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@v4
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 24.14.0
|
|
cache: npm
|
|
|
|
- name: Run the Pinokio install path
|
|
run: node scripts/pinokio-install.mjs
|
|
|
|
- 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/mapStartup.test.mjs src/hudSummaryResponse.test.mjs
|
|
|
|
- name: Build production bundle
|
|
run: npm run build
|