File tree Expand file tree Collapse file tree 4 files changed +29
-55
lines changed Expand file tree Collapse file tree 4 files changed +29
-55
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
- - main
10
- - master
11
- pull_request :
12
- branches :
13
- - main
14
- - master
15
- schedule :
16
- - cron : ' 0 2 * * *'
17
-
18
- jobs :
19
- build :
20
- runs-on : ${{ matrix.os }}
21
-
22
- strategy :
23
- fail-fast : false
24
- matrix :
25
- node-version : [14, 16, 18]
26
- os : [ubuntu-latest]
5
+ branches : [ master ]
27
6
28
- steps :
29
- - name : Checkout Git Source
30
- uses : actions/checkout@v2
31
-
32
- - name : Use Node.js ${{ matrix.node-version }}
33
- uses : actions/setup-node@v1
34
- with :
35
- node-version : ${{ matrix.node-version }}
36
-
37
- - name : Install Dependencies
38
- run : npm i
7
+ pull_request :
8
+ branches : [ master ]
39
9
40
- - name : Continuous Integration
41
- run : npm run ci
10
+ workflow_dispatch : {}
42
11
43
- - name : Code Coverage
44
- uses : codecov/codecov-action@v1
45
- with :
46
- 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'
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 27
27
"devDependencies" : {
28
28
"command-line-test" : " 1" ,
29
29
"egg-bin" : " ^5.2.0" ,
30
- "egg-ci" : " ^2.1.0" ,
31
30
"eslint" : " ^8.23.1" ,
32
31
"eslint-config-egg" : " ^12.0.0" ,
33
32
"git-contributor" : " 1" ,
41
40
"lint" : " eslint ." ,
42
41
"contributor" : " git-contributor"
43
42
},
44
- "ci" : {
45
- "os" : " linux" ,
46
- "version" : " 14, 16, 18"
47
- },
48
43
"homepage" : " https://github.com/node-modules/detect-port" ,
49
44
"license" : " MIT"
50
45
}
You can’t perform that action at this time.
0 commit comments