Skip to content

Commit 5b2106e

Browse files
authored
Merge bd5bf49 into e53b6c2
2 parents e53b6c2 + bd5bf49 commit 5b2106e

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,34 @@ jobs:
3232
run: npm ci
3333
- name: CI Self-Check
3434
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
3563
check-mongo:
3664
strategy:
3765
matrix:
@@ -79,6 +107,7 @@ jobs:
79107
NODE_VERSION: 15.8.0
80108
name: ${{ matrix.name }}
81109
timeout-minutes: 30
110+
needs: check-ci
82111
runs-on: ubuntu-18.04
83112
services:
84113
redis:
@@ -106,8 +135,6 @@ jobs:
106135
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
107136
- name: Install dependencies
108137
run: npm ci
109-
- if: ${{ matrix.name == 'Mongo 3.6.21' }}
110-
run: npm run lint
111138
- run: npm run pretest
112139
- run: npm run coverage
113140
env:
@@ -129,6 +156,7 @@ jobs:
129156
POSTGRES_IMAGE: postgis/postgis:13-3.1
130157
name: ${{ matrix.name }}
131158
timeout-minutes: 30
159+
needs: check-ci
132160
runs-on: ubuntu-18.04
133161
services:
134162
redis:

0 commit comments

Comments
 (0)