Skip to content

Commit c218f13

Browse files
committed
pkg: add ci.
1 parent 1a9811e commit c218f13

File tree

4 files changed

+128
-4
lines changed

4 files changed

+128
-4
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
},
4040
"rules": {
4141
"max-len": "off",
42-
"prefer-arrow-callback": "off"
42+
"prefer-arrow-callback": "off",
43+
"no-return-assign": "off"
4344
}
4445
}
4546
],

.github/workflows/build.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
name: Lint
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- name: Setup
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: 20.x
17+
18+
- name: Install tools
19+
run: npm install --location=global bslint
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Lint
25+
run: npm run lint
26+
27+
test:
28+
name: Test
29+
runs-on: ${{ matrix.os }}
30+
strategy:
31+
matrix:
32+
os: [ubuntu-latest]
33+
node: [16.x, 18.x, 20.x]
34+
35+
steps:
36+
- uses: actions/checkout@v3
37+
38+
- name: Setup Node.js
39+
uses: actions/setup-node@v3
40+
with:
41+
node-version: ${{ matrix.node }}
42+
43+
- name: Install dependencies
44+
run: npm install
45+
46+
- name: Test
47+
run: npm test
48+

package-lock.json

Lines changed: 75 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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@
1717
"main": "./lib/goosig.js",
1818
"scripts": {
1919
"install": "node-gyp rebuild",
20-
"lint": "eslint ./{bench,etc,lib{,/js,/native,/internal},scripts,test{,/util}}/*.js || exit 0",
20+
"lint": "eslint ./{bench,etc,lib{,/js,/native,/internal},scripts,test{,/util}}/*.js",
2121
"test": "bmocha -S 'test/*-test.js'"
2222
},
2323
"dependencies": {
2424
"bcrypto": "~5.4.0",
25-
"bsert": "~0.0.10",
25+
"bsert": "~0.0.12",
2626
"loady": "~0.0.5"
2727
},
2828
"devDependencies": {
29-
"bmocha": "^2.1.5"
29+
"bmocha": "^2.1.8"
3030
},
3131
"engines": {
3232
"node": ">=8.0.0"

0 commit comments

Comments
 (0)