Skip to content

Commit

Permalink
Update CI configuration (#144)
Browse files Browse the repository at this point in the history
* Update CI configuration

- Drop Node 10 from the matrix.
  - Already End-of-Life. See <https://github.com/nodejs/Release#end-of-life-releases>
- Add Node 16 to the matrix.
- Bump actions/setup-node from v1 to v2
  - Set `cache: npm` for speed-up
  - See <https://github.com/actions/setup-node#usage>

* Remove useless OS matrix

* Use LTS for Lint removing matrix

Co-authored-by: Richard Hallows <jeddy3@users.noreply.github.com>
  • Loading branch information
ybiquitous and jeddy3 committed Sep 14, 2021
1 parent 3076e99 commit a0b173b
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/nodejs.yml
Expand Up @@ -14,22 +14,19 @@ env:

jobs:
lint:
name: Lint on Node.js ${{ matrix.node }} and ${{ matrix.os }}
name: Lint

runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

strategy:
matrix:
node: [12]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
node-version: "lts/*"
cache: npm

- name: Install latest npm
run: npm install --global npm@latest
Expand All @@ -48,15 +45,16 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [10, 12, 14]
node: [12, 14, 16]

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm

- name: Install latest npm
run: npm install --global npm@latest
Expand Down

0 comments on commit a0b173b

Please sign in to comment.