TEST PENDING: use 1900 epoch #51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |