aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2019-11-21 17:16:54 +0200
committerNick Merwin <[email protected]>2019-11-25 13:21:38 -0800
commitbe79dab7f164da7762951fa5940dacdd3ec7ceff (patch)
treeac5dc34fd5f04180aec166a3ade2ec6c8ae8c301 /.github
parentef51945c8a378c263f263041ab59fdf47053297b (diff)
downloadnode-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.yml10
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