Skip to content

Commit 26aa32d

Browse files
committed
moved lint check into its own CI task
1 parent 19d7556 commit 26aa32d

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,26 @@ jobs:
3232
run: npm ci
3333
- name: CI Self-Check
3434
run: npm run ci:check
35+
check-lint:
36+
name: Lint
37+
timeout-minutes: 30
38+
runs-on: ubuntu-18.04
39+
steps:
40+
- uses: actions/checkout@v2
41+
- name: Use Node.js ${{ matrix.NODE_VERSION }}
42+
uses: actions/setup-node@v1
43+
with:
44+
node-version: ${{ matrix.node-version }}
45+
- name: Cache Node.js modules
46+
uses: actions/cache@v2
47+
with:
48+
path: ~/.npm
49+
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
50+
restore-keys: |
51+
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
52+
- name: Install dependencies
53+
run: npm ci
54+
- run: npm run lint
3555
check-mongo:
3656
strategy:
3757
matrix:
@@ -106,8 +126,6 @@ jobs:
106126
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
107127
- name: Install dependencies
108128
run: npm ci
109-
- if: ${{ matrix.name == 'Mongo 3.6.21' }}
110-
run: npm run lint
111129
- run: npm run pretest
112130
- run: npm run coverage
113131
env:

0 commit comments

Comments
 (0)