Updated README #73
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Commit | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [12.x, 14.x, 16.x] | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Dependencies | |
run: | | |
npm config set engine-strict true | |
npm install | |
env: | |
CI: true | |
- name: Run Tests | |
run: "npx nyc --reporter=clover npm run test:unit" | |
env: | |
CI: true | |
- name: Upload coverage | |
if: success() && matrix.node-version == '10.x' | |
run: bash <(curl -s https://codecov.io/bash) -t $TOKEN -B $BRANCH -C $SHA -f ./coverage/clover.xml | |
env: | |
TOKEN: "${{ secrets.CODECOV_TOKEN }}" | |
BRANCH: "${{ github.ref }}" | |
SHA: "${{ github.sha }}" | |
SLUG: "${{ github.slug }}" |