From 9b79ce4fa319c1e7356f5a0788e659d8fc73d4e3 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 30 May 2020 13:32:39 +0300 Subject: [PATCH] Update CI config (#2712) * remove the non-LTS Node.js 13 * specify `CI: true` environment variable * switch to `npm ci` which checks for package-lock.json and it's intended for CI --- .github/workflows/node-install.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/node-install.yml b/.github/workflows/node-install.yml index 81d8194e3..491830752 100644 --- a/.github/workflows/node-install.yml +++ b/.github/workflows/node-install.yml @@ -3,19 +3,22 @@ name: Node.js Install Test -on: +on: pull_request: release: types: - created +env: + CI: true + jobs: install-ubuntu: runs-on: ubuntu-latest strategy: matrix: - node-version: [10.x, 12.x, 13.x, 14.x] + node-version: [10.x, 12.x, 14.x] steps: - uses: actions/checkout@v2 @@ -23,14 +26,14 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - run: npm install + - run: npm ci install-macos: runs-on: macos-latest strategy: matrix: - node-version: [10.x, 12.x, 13.x, 14.x] + node-version: [10.x, 12.x, 14.x] steps: - uses: actions/checkout@v2 @@ -38,14 +41,14 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - run: npm install + - run: npm ci install-windows: runs-on: windows-latest strategy: matrix: - node-version: [10.x, 12.x, 13.x] #14.x doesn't work properly on GitHub actions + node-version: [10.x, 12.x, 14.x] steps: - uses: actions/checkout@v2 @@ -53,4 +56,4 @@ jobs: uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - run: npm install + - run: npm ci