Skip to content

Set MIN_ACTIVATION_HEADROOM to 3 #16

Set MIN_ACTIVATION_HEADROOM to 3

Set MIN_ACTIVATION_HEADROOM to 3 #16

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