This repository has been archived by the owner on Nov 5, 2023. It is now read-only.
Add contract audits #529
This file contains 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: contracts | |
on: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- 'contracts/**' | |
- '!contracts/clients/**' | |
pull_request: | |
paths: | |
- 'contracts/**' | |
- '!contracts/clients/**' | |
defaults: | |
run: | |
working-directory: ./contracts | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/setup-contracts-clients | |
- run: yarn lint | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/setup-contracts-clients | |
- run: yarn test | |
# ensure gas measurement script runs | |
test-gas-measurements: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/setup-contracts-clients | |
- uses: ./.github/actions/local-contract-deploy-hardhat | |
- run: yarn hardhat run ./scripts/measure_gas/run.ts --network gethDev |