changed lint to be separate CI task (#7216)
This commit is contained in:
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@@ -32,6 +32,26 @@ jobs:
|
|||||||
run: npm ci
|
run: npm ci
|
||||||
- name: CI Self-Check
|
- name: CI Self-Check
|
||||||
run: npm run ci:check
|
run: npm run ci:check
|
||||||
|
check-lint:
|
||||||
|
name: Lint
|
||||||
|
timeout-minutes: 30
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Use Node.js ${{ matrix.NODE_VERSION }}
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
- name: Cache Node.js modules
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.npm
|
||||||
|
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
- run: npm run lint
|
||||||
check-mongo:
|
check-mongo:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -106,8 +126,6 @@ jobs:
|
|||||||
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
|
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- if: ${{ matrix.name == 'Mongo 3.6.21' }}
|
|
||||||
run: npm run lint
|
|
||||||
- run: npm run pretest
|
- run: npm run pretest
|
||||||
- run: npm run coverage
|
- run: npm run coverage
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user