Node v10 reached it's EOL on 30-Apr-2021, and therefore i don't see a need for running ci on that, v16 would soon be the LTS version (from 26-Oct-2021) therefore needs to be tested on.
40 lines
701 B
YAML
40 lines
701 B
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [12.x, 14.x, 16.x]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
- name: Setup
|
|
uses: actions/setup-node@v1
|
|
|
|
- name: Install
|
|
run: sudo apt-get install -y libunbound-dev |
|
|
npm install nyc coveralls bslint @hns-dev/bsdoc
|
|
|
|
- name: Lint
|
|
run: npm run lint
|
|
|
|
- name: Build Docs
|
|
run: npm run build-docs
|
|
|
|
- name: Test
|
|
run: npm run test-ci
|
|
|
|
- name: Coverage
|
|
uses: coverallsapp/github-action@v1.1.1
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|