28 lines
557 B
YAML
28 lines
557 B
YAML
name: Node.js build
|
|
on:
|
|
[pull_request, push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-v: [10.x, 12.x, 14.x, 16.x]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js ${{ matrix.node-v }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-v }}
|
|
|
|
- name: Install package.json dependencies
|
|
run: npm install
|
|
|
|
- name: Run Node.js test suite
|
|
run: npm test
|
|
|
|
- name: Run linting
|
|
run: npm run lint
|