Skip to content

Commit

Permalink
ci: updating the ci workflow to use node 12+
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Jun 18, 2021
1 parent 7eeabeb commit b675d52
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,24 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x]
node-version: [12.x, 14.x, 16.x]

steps:
- uses: actions/[email protected]
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: npm install and test
run: |
npm ci
npm test
env:
CI: true
- uses: actions/[email protected]

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}

- name: Install npm@7
run: npm install -g npm@7

- name: Install deps
run: npm ci

- name: Run tests
run: npm test

0 comments on commit b675d52

Please sign in to comment.