File tree Expand file tree Collapse file tree 5 files changed +45
-35
lines changed Expand file tree Collapse file tree 5 files changed +45
-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
+ - pull_request
5
+
6
+ jobs :
7
+ test :
8
+ name : Test
9
+ runs-on : ubuntu-latest
10
+
11
+ strategy :
12
+ matrix :
13
+ node-version : [18.x, 20.x, 22.x]
14
+
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+ - name : Use Node.js ${{ matrix.node-version }}
18
+ uses : actions/setup-node@v4
19
+ with :
20
+ node-version : ${{ matrix.node-version }}
21
+ cache : " npm"
22
+ - run : npm ci
23
+ - run : npm test
24
+
25
+ coverage :
26
+ name : Coverage
27
+ runs-on : ubuntu-latest
28
+ needs : test
29
+
30
+ steps :
31
+ - uses : actions/checkout@v4
32
+ - uses : actions/setup-node@v4
33
+ with :
34
+ node-version : 22.x
35
+ cache : " npm"
36
+ - run : npm ci
37
+
38
+ - name : Coverage
39
+ run : npm run coverage:lcov
40
+
41
+ - name : Coveralls
42
+ 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