File tree Expand file tree Collapse file tree 5 files changed +47
-35
lines changed Expand file tree Collapse file tree 5 files changed +47
-35
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ charset = utf-8
8
8
trim_trailing_whitespace = true
9
9
insert_final_newline = true
10
10
11
- [package. json ]
11
+ [* .{ json,yml} ]
12
12
indent_style = space
13
13
indent_size = 2
14
14
Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ push :
4
+ branches : ["main"]
5
+ pull_request :
6
+ branches : ["main"]
7
+
8
+ jobs :
9
+ test :
10
+ name : Test
11
+ runs-on : ubuntu-latest
12
+
13
+ strategy :
14
+ matrix :
15
+ node-version : [18.x, 20.x, 22.x]
16
+
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+ - name : Use Node.js ${{ matrix.node-version }}
20
+ uses : actions/setup-node@v4
21
+ with :
22
+ node-version : ${{ matrix.node-version }}
23
+ cache : " npm"
24
+ - run : npm ci
25
+ - run : npm test
26
+
27
+ coverage :
28
+ name : Coverage
29
+ runs-on : ubuntu-latest
30
+ needs : test
31
+
32
+ steps :
33
+ - uses : actions/checkout@v4
34
+ - uses : actions/setup-node@v4
35
+ with :
36
+ node-version : 20.x
37
+ cache : " npm"
38
+ - run : npm ci
39
+
40
+ - name : Coverage
41
+ run : npm run coverage:lcov
42
+
43
+ - name : Coveralls
44
+ uses : coverallsapp/github-action@v2.3.0
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 14
14
},
15
15
"scripts" : {
16
16
"test" : " mocha -R spec" ,
17
- "coverage" : " nyc --reporter=html npm run test" ,
18
- "coveralls " : " nyc --reporter=lcovonly npm run test && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage "
17
+ "coverage:html " : " nyc --reporter=html npm run test" ,
18
+ "coverage:lcov " : " nyc --reporter=lcovonly npm run test"
19
19
},
20
20
"files" : [
21
21
" index.js"
You can’t perform that action at this time.
0 commit comments