2020-09-01 14:51:59 +00:00
|
|
|
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
|
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
|
|
|
|
|
|
name: Node.js CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-04-30 08:43:23 +00:00
|
|
|
node-version: [16.x]
|
2020-09-01 14:51:59 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
2021-04-30 08:43:23 +00:00
|
|
|
uses: actions/setup-node@v2
|
2020-09-01 14:51:59 +00:00
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
2021-04-30 08:43:23 +00:00
|
|
|
check-latest: true
|
2021-08-25 14:00:44 +00:00
|
|
|
cache: npm
|
2020-09-01 14:51:59 +00:00
|
|
|
|
2021-07-07 14:24:03 +00:00
|
|
|
- run: npm ci
|
2021-07-13 12:56:44 +00:00
|
|
|
- run: npm run lint
|
|
|
|
- run: npm run test
|
2021-07-20 14:40:45 +00:00
|
|
|
- run: npm run build
|