Skip to content

Commit

Permalink
build: update ci to use Node.js v12 v14 v16
Browse files Browse the repository at this point in the history
  • Loading branch information
meixg committed Apr 6, 2022
1 parent 24c1cc3 commit e6d2307
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,45 +7,27 @@ on:
branches: [master]

jobs:
build:

runs-on: ubuntu-latest

check:
name: Check
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x]

node-version: ['12', '14', '16']
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm ci
- run: npm run build
env:
CI: true

test:

runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run test
env:
CI: true
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: "./test/coverage/lcov.info"
path-to-lcov: "./test/coverage/lcov.info"

0 comments on commit e6d2307

Please sign in to comment.