File tree 3 files changed +48
-2
lines changed
3 files changed +48
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Node.js CI
2
+
3
+ on :
4
+ schedule :
5
+ - cron : ' 23 4 * * *' # Once, nightly
6
+ push :
7
+ branches :
8
+ - main
9
+ pull_request :
10
+
11
+ jobs :
12
+
13
+ test :
14
+
15
+ runs-on : ubuntu-latest
16
+
17
+ strategy :
18
+ matrix :
19
+ node-version : [ 15, 14, 12, 10 ]
20
+
21
+ steps :
22
+ - uses : actions/checkout@v2
23
+ - uses : actions/setup-node@v1
24
+ with :
25
+ node-version : ${{ matrix.node-version }}
26
+ - run : npm install
27
+ - run : npm run tests-only
28
+
29
+ lint :
30
+
31
+ runs-on : ubuntu-latest
32
+
33
+ strategy :
34
+ matrix :
35
+ node-version : [ 14 ]
36
+
37
+ steps :
38
+ - uses : actions/checkout@v2
39
+ - uses : actions/setup-node@v1
40
+ with :
41
+ node-version : ${{ matrix.node-version }}
42
+ - run : npm install
43
+ - run : npm run lint
Original file line number Diff line number Diff line change 2
2
3
3
[ ![ NPM Version] ( https://img.shields.io/npm/v/create-pkg.svg )] ( https://npmjs.org/package/create-pkg )
4
4
[ ![ NPM Downloads] ( https://img.shields.io/npm/dm/create-pkg.svg )] ( https://npmjs.org/package/create-pkg )
5
- [ ![ test] ( https://github.com/pkgjs/create/workflows/Test /badge.svg )] ( https://github.com/pkgjs/create/actions?query=workflow%3ATest )
5
+ ![ test] ( https://github.com/pkgjs/create/workflows/Node.js%20CI /badge.svg )
6
6
[ ![ js-standard-style] ( https://img.shields.io/badge/code%20style-standard-brightgreen.svg )] ( https://github.com/standard/standard )
7
7
8
8
## Usage
Original file line number Diff line number Diff line change 23
23
"create-package" : " bin/create-package"
24
24
},
25
25
"scripts" : {
26
- "test" : " standard && mocha --timeout=60000" ,
26
+ "lint" : " standard" ,
27
+ "pretest" : " npm run lint" ,
28
+ "test" : " npm run tests-only" ,
29
+ "tests-only" : " mocha --timeout=60000" ,
27
30
"test:debug" : " mocha --inspect --inspect-brk --timeout=0" ,
28
31
"release" : " npm t && standard-version && npm publish" ,
29
32
"postpublish" : " git push origin && git push origin --tags"
You can’t perform that action at this time.
0 commit comments