Skip to content

Commit 1fe0682

Browse files
committed
ci: Add PR workflow to check install, lint, and build
Runs npm ci + lint + next build on every pull request (and via manual dispatch) so broken builds are caught before merge.
1 parent d0a9664 commit 1fe0682

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+
# Verify the project installs, lints, and builds on every pull request.
4+
on:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Node
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: "20"
19+
cache: npm
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Lint
25+
run: npm run lint
26+
27+
- name: Build
28+
run: npm run build

0 commit comments

Comments
 (0)