Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

Commit d29aaed

Browse files
committed
feat: Add GitHub Actions workflow for automated testing with Node.js
1 parent b19cfde commit d29aaed

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
env:
9+
NODE_VERSION: '20'
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Use Node.js ${{ env.NODE_VERSION }}
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{ env.NODE_VERSION }}
23+
cache: npm
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
28+
- name: Build application
29+
run: npm run build
30+
31+
- name: Run tests
32+
run: npm test
33+
34+

0 commit comments

Comments
 (0)