Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.

docs: add archive notice to README (#38) #95

docs: add archive notice to README (#38)

docs: add archive notice to README (#38) #95

name: Unit Tests and Coverage
on:
workflow_dispatch: # Allow manual triggering for testing the workflow itself
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
# Use a dummy key for unit tests
PRIVATE_KEY: '0000000000000000000000000000000000000000000000000000000000000000'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run tests
run: yarn hardhat test
- name: Run coverage
run: yarn hardhat coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.json
flags: unittests