Skip to content

Commit 18ea7d5

Browse files
committed
feat: add GitHub Actions workflow for automated testing and build process
1 parent 9f0e031 commit 18ea7d5

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Tests
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@v4
15+
16+
- name: Use Node.js 22
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '22'
20+
cache: 'npm'
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Run type checking
26+
run: npm run lint
27+
28+
- name: Run tests
29+
run: npm test
30+
31+
- name: Build project
32+
run: npm run build

0 commit comments

Comments
 (0)