@@ -11,11 +11,11 @@ jobs:
11
11
timeout-minutes : 5
12
12
runs-on : ubuntu-18.04
13
13
steps :
14
- - uses : actions/checkout@v2
14
+ - uses : actions/checkout@v3
15
15
- name : Check NPM lock file version
16
16
uses : mansona/npm-lockfile-version@v1
17
17
with :
18
- version : 1
18
+ version : 2
19
19
build :
20
20
runs-on : ubuntu-latest
21
21
timeout-minutes : 30
@@ -37,24 +37,22 @@ jobs:
37
37
- name : Fix git protocol for Node 14
38
38
if : ${{ startsWith(matrix.NODE_VERSION, '14.') }}
39
39
run : sudo git config --system url."https://github".insteadOf "ssh://git@github"
40
- - uses : actions/checkout@v2
40
+ - uses : actions/checkout@v3
41
41
- name : Use Node.js
42
- uses : actions/setup-node@v1
42
+ uses : actions/setup-node@v3
43
43
with :
44
44
node-version : ${{ matrix.NODE_VERSION }}
45
45
- name : Cache Node.js modules
46
- uses : actions/cache@v2
46
+ uses : actions/cache@v3
47
47
with :
48
48
path : ~/.npm
49
- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
49
+ key : ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
50
50
restore-keys : |
51
- ${{ runner.os }}-node-
51
+ ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
52
52
- run : npm ci
53
- - run : npm install -g mongodb-runner
54
- - run : mongodb-runner start
55
53
- run : npm run lint
56
54
- run : npm test -- --maxWorkers=4
57
- - run : npm run integration
55
+ - run : npm run test:mongodb
58
56
env :
59
57
CI : true
60
58
- run : bash <(curl -s https://codecov.io/bash)
0 commit comments