Skip to content

Commit bccaef9

Browse files
committed
feat: added tests to .github workflow
1 parent 16eacf0 commit bccaef9

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

Diff for: .github/workflows/add-release-and-publish.yml

+14
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ on:
66
- master
77

88
jobs:
9+
10+
runner-job:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Check out repository code
15+
uses: actions/checkout@v4
16+
17+
- name: Install dependencies
18+
run: npm ci
19+
20+
- name: Run Tests
21+
run: npm test
22+
923
release:
1024
name: Release
1125
runs-on: ubuntu-latest

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"access": "public",
77
"registry": "https://registry.npmjs.org/"
88
},
9+
"type": "module",
910
"main": "build/index.js",
1011
"types": "build/index.d.ts",
1112
"files": [
@@ -19,7 +20,7 @@
1920
],
2021
"scripts": {
2122
"build": "tsc",
22-
"test": "echo \"Error: no test specified\" && exit 1"
23+
"test": "npm run build && node ./build/test/index.js"
2324
},
2425
"repository": {
2526
"type": "git",

0 commit comments

Comments
 (0)