File tree 4 files changed +41
-76
lines changed
4 files changed +41
-76
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2
- # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
-
4
- name : Node.js CI
1
+ name : CI
5
2
6
3
on :
7
4
push :
8
- branches :
9
- - master
10
- pull_request :
11
- branches :
12
- - master
13
- schedule :
14
- - cron : ' 0 2 * * *'
15
-
16
- jobs :
17
- build :
18
- runs-on : ${{ matrix.os }}
19
-
20
- strategy :
21
- fail-fast : false
22
- matrix :
23
- node-version : [12, 14, 16]
24
- os : [ubuntu-latest, windows-latest, macos-latest]
5
+ branches : [ master ]
25
6
26
- steps :
27
- - name : Checkout Git Source
28
- uses : actions/checkout@v2
29
-
30
- - name : Use Node.js ${{ matrix.node-version }}
31
- uses : actions/setup-node@v1
32
- with :
33
- node-version : ${{ matrix.node-version }}
34
-
35
- - name : Install Dependencies
36
- run : npm i -g npminstall && npminstall
7
+ pull_request :
8
+ branches : [ master ]
37
9
38
- - name : Continuous Integration
39
- run : npm run ci
10
+ workflow_dispatch : {}
40
11
41
- - name : Code Coverage
42
- uses : codecov/codecov-action@v1
43
- with :
44
- token : ${{ secrets.CODECOV_TOKEN }}
12
+ jobs :
13
+ Job :
14
+ name : Node.js
15
+ uses : artusjs/github-actions/.github/workflows/node-test.yml@v1
16
+ with :
17
+ os : ' ubuntu-latest, macos-latest, windows-latest'
18
+ version : ' 14, 16, 18'
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+
7
+ workflow_dispatch : {}
8
+
9
+ jobs :
10
+ release :
11
+ name : Node.js
12
+ uses : artusjs/github-actions/.github/workflows/node-release.yml@v1
13
+ secrets :
14
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
15
+ GIT_TOKEN : ${{ secrets.GIT_TOKEN }}
16
+ with :
17
+ checkTest : false
Original file line number Diff line number Diff line change 21
21
"zlogger" : " ^1.1.0"
22
22
},
23
23
"devDependencies" : {
24
- "autod" : " ^3.0.1" ,
25
24
"co" : " ^4.6.0" ,
26
25
"coffee" : " ^5.1.1" ,
27
- "egg" : " ^2.14.1 " ,
28
- "egg-bin" : " ^4.9.0 " ,
29
- "eslint" : " ^5.10 .0" ,
30
- "eslint-config-egg" : " ^7 .1.0" ,
26
+ "egg" : " ^3.9.0 " ,
27
+ "egg-bin" : " ^5.6.1 " ,
28
+ "eslint" : " ^8.30 .0" ,
29
+ "eslint-config-egg" : " ^12 .1.0" ,
31
30
"git-contributor" : " ^1.0.10" ,
32
- "mm" : " ^2.4.1" ,
33
- "typescript" : " ^4" ,
34
- "urllib" : " ^2.31.3" ,
35
- "webstorm-disable-index" : " ^1.2.0"
31
+ "mm" : " ^3.2.1" ,
32
+ "typescript" : " ^4.9.4" ,
33
+ "urllib" : " ^3.9.0"
36
34
},
37
35
"engines" : {
38
36
"node" : " >=6.0.0"
39
37
},
38
+ "ci" : {
39
+ "version" : " 14, 16, 18"
40
+ },
40
41
"scripts" : {
41
42
"contributor" : " git-contributor" ,
42
- "pkgfiles" : " egg-bin pkgfiles" ,
43
- "test" : " npm run lint -- --fix && npm run pkgfiles && npm run test-local" ,
43
+ "test" : " npm run lint -- --fix && npm run test-local" ,
44
44
"test-local" : " egg-bin test" ,
45
45
"cov" : " egg-bin cov" ,
46
46
"lint" : " eslint ." ,
47
- "ci" : " npm run pkgfiles -- --check && npm run lint && npm run cov" ,
48
- "autod" : " autod"
47
+ "ci" : " npm run lint && npm run cov"
49
48
},
50
49
"files" : [
51
50
" index.js" ,
You can’t perform that action at this time.
0 commit comments