Skip to content

feat(nav): collapse 11 flat links into 4 hover/focus dropdown groups #172

feat(nav): collapse 11 flat links into 4 hover/focus dropdown groups

feat(nav): collapse 11 flat links into 4 hover/focus dropdown groups #172

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Check & build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci --ignore-scripts
# FR-4: the fetch step runs inside `npm run build` and must FAIL LOUDLY
# if a pinned engine document moved. Keeping it as an explicit step makes
# the failure legible in Checks.
- name: Fetch engine docs, release, discussions
run: npm run fetch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# #91 — fails when a link into the engine repo names a branch instead of the
# ref the build resolved. Its own step so the failure is legible in Checks
# rather than buried in astro's output, same reasoning as the fetch step.
- name: Engine links are pinned, not on a branch
run: npm run check:engine-refs
- name: Type check
run: npm run check
- name: Build
run: ./node_modules/.bin/astro build
- name: Upload site artifact (for PR inspection)
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
with:
name: site-preview
path: dist
retention-days: 7