Skip to content

avoid more deprecated nodejs #5

avoid more deprecated nodejs

avoid more deprecated nodejs #5

Workflow file for this run

name: build
on:
push:
# branches: [ $default-branch, ar-test ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# 0.10 and 0.8 might need a newer qmock
# NOTE: github actions have deprecated nodejs 0-6 (possibly more), need to roll own
node: [ 12, 16, 13.8.0 ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
# work around the "bits/c++config.h: No such file or directory" github build error
- run: sudo apt-get install gcc-multilib g++-multilib || true
- run: npm install
- name: npm test
run: test `node -v` '!=' 'v13.8.0' && npm test || true
- name: install nyc
if: ${{ matrix.node == '13.8.0' }}
run: npm install -g [email protected]
- name: test coverage
if: ${{ matrix.node == '13.8.0' }}
run: npm run coverage
- name: upload coverage
if: ${{ matrix.node == '13.8.0' }}
uses: coverallsapp/[email protected]
with:
github-token: ${{ github.token }}