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
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# GOLDEN CI FLOOR — npm. See dotfiles/templates/ci/README.md.
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

# A newer push makes the older run obsolete — don't waste minutes finishing it.
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
verify:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v7

- uses: actions/setup-node@v7
with:
node-version: 20
cache: npm

- name: Install
run: npm ci

# SSOT: "verified" is defined ONCE, in package.json `verify`
# (= build + test), and run identically here and locally. Change the
# checks in one place, not two.
#
# `npm test` here also exercises the package's `exports` map, because the
# tests import it BY NAME rather than reaching into dist/ — so a broken
# exports/files map fails here rather than at a consumer's install.
- name: Verify
run: npm run verify