Skip to content

Commit 0c45212

Browse files
committed
Add GitHub actions
1 parent f1619ae commit 0c45212

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v5
15+
16+
- name: Use Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: "22"
20+
cache: "npm"
21+
22+
- name: Cache node modules
23+
uses: actions/cache@v4
24+
with:
25+
path: node_modules
26+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
27+
restore-keys: |
28+
${{ runner.os }}-node-
29+
30+
- name: Install dependencies
31+
run: npm ci
32+
33+
- name: Run ESLint
34+
run: npm run eslint
35+
36+
- name: Run lint
37+
run: npm run lint
38+
39+
- name: Run build
40+
run: npm run build

0 commit comments

Comments
 (0)