Skip to content

Commit dea172a

Browse files
committed
pkg: add ci.
1 parent bd09d49 commit dea172a

File tree

3 files changed

+76
-1
lines changed

3 files changed

+76
-1
lines changed

.github/workflows/build.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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: 18.x
17+
18+
- name: Install dependencies
19+
run: npm install --location=global bslint
20+
21+
- name: Lint
22+
run: npm run lint
23+
24+
test:
25+
name: Test
26+
runs-on: ubuntu-latest
27+
28+
steps:
29+
- uses: actions/checkout@v3
30+
31+
- name: Setup
32+
uses: actions/setup-node@v3
33+
with:
34+
node-version: 18.x
35+
36+
- name: Install dependencies
37+
run: npm install
38+
39+
- name: Test
40+
run: npm run test

package-lock.json

+32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@
1414
"author": "Christopher Jeffrey <[email protected]>",
1515
"main": "./lib/assert.js",
1616
"scripts": {
17-
"lint": "eslint lib/ test/ || exit 0",
17+
"lint": "eslint lib/ test/",
1818
"test": "bmocha --reporter spec test/*-test.js"
1919
},
2020
"engines": {
2121
"node": ">=8.0.0"
22+
},
23+
"devDependencies": {
24+
"bmocha": "^2.1.8"
2225
}
2326
}

0 commit comments

Comments
 (0)