mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 18:34:02 +00:00
The Street Level and panel gates never ran in CI, and the live gate needs a Mapillary token, the Mapillary network and real coverage at its test site, so everything users see was guarded only by manual runs (which a bad token and expired tile caches blocked twice this week). `qa-street-level.mjs --fixtures` (npm run qa:street-level:fixtures) answers the page's /api/mapillary/status and coverage-tile requests from generated tiles (a street grid with flat and 360 deg sequences, half captured three years ago; overview points from orbit) and blocks mapillary.com. Only the six steps that open a photo are skipped. Because the data is known, the 360 deg and SINCE steps also assert that the filters remove sequences, not just that counts do not grow. A unit test pins the fixture contents. New CI job "Street Level browser gate": install with headless Chrome, start a key-less dev server, run the fixture gate and qa:panel-resize. Locally, against a dev server with every key blanked: 14/14 on three consecutive runs, panel gate all pass. Co-Authored-By: Claude Opus 5.5 <[email protected]>
140 lines
4.0 KiB
YAML
140 lines
4.0 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
|
|
fetch-depth: 0
|
|
|
|
- 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: Check published layer-token allocations
|
|
if: github.event_name == 'pull_request'
|
|
run: npm run layer-token:check -- --base-ref origin/main
|
|
|
|
- name: Run unit tests
|
|
run: npm test
|
|
|
|
- name: Build production bundle
|
|
run: npm run build
|
|
|
|
street-level-browser:
|
|
# The Street Level gate in its hermetic mode: Mapillary status and coverage
|
|
# tiles are answered from generated fixtures, so no token or Mapillary
|
|
# network is needed. The steps that open a photo need live imagery and
|
|
# are skipped here; run `npm run qa:street-level` with a token for them.
|
|
name: Street Level browser gate
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
env:
|
|
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: Install locked dependencies and headless Chrome
|
|
run: npm ci
|
|
|
|
- name: Start the dev server
|
|
run: |
|
|
npx vite --port 4173 --strictPort > vite.log 2>&1 &
|
|
for attempt in $(seq 1 90); do
|
|
curl -sf http://localhost:4173/ > /dev/null && exit 0
|
|
sleep 2
|
|
done
|
|
cat vite.log
|
|
exit 1
|
|
|
|
- name: Street Level gate with Mapillary fixtures
|
|
run: npm run qa:street-level:fixtures -- --url http://localhost:4173
|
|
|
|
- name: Portable panel gate
|
|
run: npm run qa:panel-resize -- --url http://localhost:4173
|
|
|
|
- name: Dev server log
|
|
if: failure()
|
|
run: cat vite.log
|
|
|
|
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
|