Skip to content

Commit a6690c1

Browse files
committed
Add required checks for PRs
Sets up GitHub Actions workflow for CI. Closes #43.
1 parent 540b7fb commit a6690c1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Use Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: '20.x'
18+
cache: 'npm'
19+
- run: npm ci
20+
- run: npm run build
21+
- run: npm run lint

0 commit comments

Comments
 (0)