Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CI

# Build/test guard for pull requests. Runs the same install + build the Pages
# deploy runs, so a broken build, failing tests, type errors, or a
# platform-incomplete package-lock.json fail HERE (before merge) instead of on
# the production deploy after merge.

on:
pull_request:
branches: [main]

permissions:
contents: read

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"

# Strict install — fails fast if package-lock.json is out of sync or is
# missing the linux-x64 native binaries the runner needs (npm/cli#4828).
- name: Install dependencies
run: npm ci

- name: Type-check
run: npm run type-check

- name: Test
run: npm test

- name: Build
run: npm run build
Loading