File tree Expand file tree Collapse file tree 1 file changed +30
-2
lines changed Expand file tree Collapse file tree 1 file changed +30
-2
lines changed Original file line number Diff line number Diff line change 32
32
run : npm ci
33
33
- name : CI Self-Check
34
34
run : npm run ci:check
35
+ - name : Create PR to upgrade CI environments if needed
36
+ uses : peter-evans/create-pull-request@v3
37
+ with :
38
+ title : Upgrade CI environments
39
+ body : This is an automated PR to upgrade package versions in CI environments for MongoDB, Node.js.
40
+ commit-message : Upgrading versions of MongoDB / Node.js
41
+ branch : ci/upgrade-ci-environments
42
+ base : master
43
+ check-lint :
44
+ name : Lint
45
+ timeout-minutes : 30
46
+ runs-on : ubuntu-18.04
47
+ steps :
48
+ - uses : actions/checkout@v2
49
+ - name : Use Node.js ${{ matrix.NODE_VERSION }}
50
+ uses : actions/setup-node@v1
51
+ with :
52
+ node-version : ${{ matrix.node-version }}
53
+ - name : Cache Node.js modules
54
+ uses : actions/cache@v2
55
+ with :
56
+ path : ~/.npm
57
+ key : ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
58
+ restore-keys : |
59
+ ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
60
+ - name : Install dependencies
61
+ run : npm ci
62
+ - run : npm run lint
35
63
check-mongo :
36
64
strategy :
37
65
matrix :
79
107
NODE_VERSION : 15.8.0
80
108
name : ${{ matrix.name }}
81
109
timeout-minutes : 30
110
+ needs : check-ci
82
111
runs-on : ubuntu-18.04
83
112
services :
84
113
redis :
@@ -106,8 +135,6 @@ jobs:
106
135
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
107
136
- name : Install dependencies
108
137
run : npm ci
109
- - if : ${{ matrix.name == 'Mongo 3.6.21' }}
110
- run : npm run lint
111
138
- run : npm run pretest
112
139
- run : npm run coverage
113
140
env :
@@ -129,6 +156,7 @@ jobs:
129
156
POSTGRES_IMAGE : postgis/postgis:13-3.1
130
157
name : ${{ matrix.name }}
131
158
timeout-minutes : 30
159
+ needs : check-ci
132
160
runs-on : ubuntu-18.04
133
161
services :
134
162
redis :
You can’t perform that action at this time.
0 commit comments