name: Node CI

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

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

    steps:
    - uses: actions/checkout@v1
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}
    - name: npm install
      run: for dir in hash.*; do (cd $dir && npm install --no-save --no-package-lock); done
    - name: npm ls
      run: for dir in hash.*; do (cd $dir && npm ls); done
    - name: npm install nyc, prove, mocha, codecov
      run:  npm install -g nyc prove mocha codecov
    - name: npm test
      run: nyc npm test
      env:
        CI: true
    - name: generate codecov report
      run: nyc report --reporter=text-lcov > coverage.lcov
    - name: ship coverage to codecov
      run: codecov --branch=${GITHUB_REF##*/}
      env:
        CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}

name: Node CI

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

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

    steps:
    - uses: actions/checkout@v1
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}
    - name: npm install
      run: for dir in hash.*; do (cd $dir && npm install --no-save --no-package-lock); done
    - name: npm ls
      run: for dir in hash.*; do (cd $dir && npm ls); done
    - name: npm install nyc, prove, mocha, codecov
      run:  npm install -g nyc prove mocha codecov
    - name: npm test
      run: nyc npm test
      env:
        CI: true
    - name: generate codecov report
      run: nyc report --reporter=text-lcov > coverage.lcov
    - name: ship coverage to codecov
      run: codecov --branch=${GITHUB_REF##*/}
      env:
        CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}

Build with Node.js 16 on GitHub Actions.
Build with Node.js 16 on GitHub Actions.
