Skip to content

Commit 49fb7f5

Browse files
committed
chore: add CI/CD test
1 parent 26efe38 commit 49fb7f5

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

.github/workflows/node.js.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Node.js CI
2+
on:
3+
push:
4+
branches: [ "main" ]
5+
pull_request:
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
node-version:
12+
- 20.x
13+
- latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
- run: npm run fmt
21+
- run: npm ci
22+
- run: npm test

package-lock.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"bump": "npm version -m \"chore(release): bump to v%s\"",
1616
"fmt": "npx -p [email protected] -- prettier -w '**/*.{html,js,md}'",
1717
"lint": "npx -p [email protected] -- tsc -p ./jsconfig.json",
18-
"test": "echo \"Error: no test specified\" && exit 1"
18+
"test": "node ./test.js"
1919
},
2020
"repository": {
2121
"type": "git",
@@ -41,6 +41,7 @@
4141
},
4242
"homepage": "https://github.com/dashhive/dashkeys.js#readme",
4343
"devDependencies": {
44+
"@dashincubator/base58check": "^1.3.2",
4445
"@dashincubator/secp256k1": "^1.7.1-5"
4546
}
4647
}

0 commit comments

Comments
 (0)