CI: run less node versions, oldest supported / latest is enough

This commit is contained in:
Ronan Jouchet 2021-04-23 21:52:03 -04:00
parent 09accbd28a
commit 9f561c0091
2 changed files with 3 additions and 5 deletions

View File

@ -13,9 +13,7 @@ jobs:
strategy:
matrix:
node-version:
- 16.x
- 14.x # Changing this? Remind to keep linter conditions below and in publish.yml aligned.
- 12.x
- 16.x # Changing this? Remind to keep linter conditions below and in publish.yml aligned.
- 10.x
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
@ -28,6 +26,6 @@ jobs:
# Will also (through `prepare` hook): 1. install ./app, and 2. build
- run: npm install --no-fund
# Only run linter once, for faster CI. Align the versions of Node here with above and publish.yml.
- if: matrix.platform == 'ubuntu-latest' && matrix.node-version == '14.x'
- if: matrix.platform == 'ubuntu-latest' && matrix.node-version == '16.x'
run: npm run lint
- run: npm test

View File

@ -12,7 +12,7 @@ jobs:
- uses: actions/setup-node@v1
with:
# Align the version of Node here with ci.yml.
node-version: '14.x'
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
# Will also (through `prepare` hook): 1. install ./app, and 2. build
- run: npm install --no-fund