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
51 changes: 51 additions & 0 deletions .github/workflows/pr-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Build check for pull requests.
#
# Without this, nothing verifies a pull request at all -- the only other
# workflow runs on push to the default branch, after the merge. That makes
# dependency bumps unreviewable in practice: the PR looks green because
# nothing is checking it.
#
# Actions are pinned by commit SHA rather than tag, matching the convention
# already used elsewhere in this org and required by the zizmor audit.
#
# Node matches .sandcastle/Dockerfile. There is no lint step yet: `npm run
# lint` currently crashes before reaching the code --
# @typescript-eslint/no-unused-expressions is incompatible with the installed
# eslint 9.15 ("Cannot read properties of undefined (reading
# allowShortCircuit)"). Re-add the step once that pairing is resolved; a
# Dependabot bump of either package may well fix it.
name: PR CI

"on":
pull_request:

# Read-only: this workflow never needs to write to the repo.
permissions:
contents: read

# A new push to a PR makes the in-flight run redundant.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# checkout leaves the job token in .git/config unless told
# otherwise. Nothing here pushes, so drop it (zizmor:
# artipacked).
persist-credentials: false

- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "22"
cache: npm

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build