Skip to content

5.0.4

5.0.4 #88

Workflow file for this run

name: Commit
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
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 == '20.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 }}"