1
-
2
1
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
3
2
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
4
3
5
4
name : Node.js CI
6
5
7
6
on :
8
7
push :
9
- branches : [ master ]
8
+ branches : [master]
10
9
pull_request :
11
- branches : [ master ]
10
+ branches : [master]
12
11
13
12
env :
14
13
PORT : 3000
21
20
CLIENT_URL : http://localhost:3000
22
21
23
22
jobs :
24
-
25
23
test :
26
-
27
24
runs-on : ubuntu-latest
28
25
29
26
strategy :
@@ -33,23 +30,22 @@ jobs:
33
30
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
34
31
35
32
steps :
36
- - uses : actions/checkout@v2
37
- - name : Use Node.js ${{ matrix.node-version }}
38
- uses : actions/setup-node@v1
39
- with :
40
- node-version : ${{ matrix.node-version }}
41
- - name : Start MongoDB
42
- uses :
supercharge/[email protected]
43
- with :
44
- mongodb-version : ${{ matrix.mongodb-version }}
45
- - run : yarn
46
- - name : Run linting tests
47
- run : yarn lint
48
- - name : Run unit tests
49
- run : yarn test
33
+ - uses : actions/checkout@v2
34
+ - name : Use Node.js ${{ matrix.node-version }}
35
+ uses : actions/setup-node@v1
36
+ with :
37
+ node-version : ${{ matrix.node-version }}
38
+ - name : Start MongoDB
39
+ uses :
supercharge/[email protected]
40
+ with :
41
+ mongodb-version : ${{ matrix.mongodb-version }}
42
+ - run : yarn
43
+ - name : Run linting tests
44
+ run : yarn lint
45
+ - name : Run unit tests
46
+ run : yarn test
50
47
51
48
coverage :
52
-
53
49
runs-on : ubuntu-latest
54
50
55
51
needs : test
@@ -61,19 +57,20 @@ jobs:
61
57
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
62
58
63
59
steps :
64
- - uses : actions/checkout@v2
65
- - name : Use Node.js ${{ matrix.node-version }}
66
- uses : actions/setup-node@v1
67
- with :
68
- node-version : ${{ matrix.node-version }}
69
- - name : Start MongoDB
70
- uses :
supercharge/[email protected]
71
- with :
72
- mongodb-version : ${{ matrix.mongodb-version }}
73
- - run : yarn
74
- - name : Generate coverage
75
- run : yarn coverage:coveralls
76
- - name : Upload coverage to Codecov
77
- uses : codecov/codecov-action@v2
78
- with :
79
- fail_ci_if_error : true
60
+ - uses : actions/checkout@v2
61
+ - name : Use Node.js ${{ matrix.node-version }}
62
+ uses : actions/setup-node@v1
63
+ with :
64
+ node-version : ${{ matrix.node-version }}
65
+ - name : Start MongoDB
66
+ uses :
supercharge/[email protected]
67
+ with :
68
+ mongodb-version : ${{ matrix.mongodb-version }}
69
+ - run : yarn
70
+ - name : Generate coverage
71
+ run : yarn coverage:coveralls
72
+ - name : Upload coverage to Codecov
73
+ uses : codecov/codecov-action@v2
74
+ with :
75
+ fail_ci_if_error : true
76
+ version : ' v0.1.15'
0 commit comments