Skip to content

chore(deps): bump codecov/codecov-action from 4.5.0 to 5.1.2 #371

chore(deps): bump codecov/codecov-action from 4.5.0 to 5.1.2

chore(deps): bump codecov/codecov-action from 4.5.0 to 5.1.2 #371

Workflow file for this run

name: Unit Tests and Coverage
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [18.x, 20.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: package-lock.json
- run: npm install
- run: npx hardhat test
- run: npx hardhat coverage
- run: npx istanbul check-coverage --lines 90
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: nation3/nationcred-contracts