Skip to content

TEST PENDING: use 1900 epoch #51

TEST PENDING: use 1900 epoch

TEST PENDING: use 1900 epoch #51

Workflow file for this run

name: Hardhat Tests
on:
push:
pull_request_target:
jobs:
test:
name: Run Hardhat Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Compile contracts
run: pnpm hardhat compile
- name: Run tests and report test coverage, and gas cost
run: SOLIDITY_COVERAGE=true REPORT_GAS=1 pnpm hardhat coverage
- name: Upload contract artifacts
uses: actions/upload-artifact@v4
with:
name: contract-artifacts
path: artifacts/
if-no-files-found: error
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage/
if-no-files-found: error
- name: "Add test summary"
run: |
echo "## Test results" >> $GITHUB_STEP_SUMMARY
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY