diff options
| author | XhmikosR <[email protected]> | 2019-11-21 17:16:54 +0200 |
|---|---|---|
| committer | Nick Merwin <[email protected]> | 2019-11-25 13:21:38 -0800 |
| commit | be79dab7f164da7762951fa5940dacdd3ec7ceff (patch) | |
| tree | ac5dc34fd5f04180aec166a3ade2ec6c8ae8c301 /.github | |
| parent | ef51945c8a378c263f263041ab59fdf47053297b (diff) | |
| download | node-coveralls-be79dab7f164da7762951fa5940dacdd3ec7ceff.tar.xz node-coveralls-be79dab7f164da7762951fa5940dacdd3ec7ceff.zip | |
CI: use `npm ci` on Node.js >=8.
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/test.yml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 26ad1ae..419d6c4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,8 +26,14 @@ jobs: - run: node --version - run: npm --version - - name: Install npm dependencies - run: npm install # switch to `npm ci` when Node.js 6 support is dropped + # remove this block when Node.js 6.x is dropped + - name: Install npm dependencies (npm i) + run: npm install + if: matrix.node < 8 + + - name: Install npm dependencies (npm ci) + run: npm ci + if: matrix.node >= 8 - name: Run lint run: npm run lint |
