Skip to content

Commit a53e1ac

Browse files
committed
added: github actions ci
1 parent 8ca8bb6 commit a53e1ac

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/ci.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CI Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Use Node.js Version 16
12+
uses: actions/setup-node@v4
13+
with:
14+
node-version: 16
15+
- name: Install Node.js dependencies
16+
run: npm install
17+
18+
- name: Run jest tests
19+
run: npm run test:ci

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
},
1212
"scripts": {
1313
"test": "jest",
14+
"test:ci": "jest --ci",
1415
"test:w": "jest --watch",
1516
"check:tar": "npm pack && tar -xvzf *.tgz && rm -rf package *.tgz"
1617
},

0 commit comments

Comments
 (0)