Skip to content

Commit f6fff99

Browse files
committed
ci: run lint, unit, and build on every pull request
Adds a CI workflow that triggers on pull_request to master and beta and runs the same npm run test pipeline (lint -> unit -> build) that the publish workflow runs on push, so the PR gate matches the release gate. Concurrency is keyed by PR number so a force-push cancels the in-flight run instead of queueing behind it.
1 parent 250e0ea commit f6fff99

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
- beta
8+
9+
concurrency:
10+
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
test:
15+
name: Lint, unit, build
16+
runs-on: ubuntu-24.04
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
- name: Setup node
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 22
24+
cache: 'npm'
25+
- name: Install dependencies
26+
run: npm ci
27+
- name: Test
28+
run: npm run test

0 commit comments

Comments
 (0)