.github/workflows/test.yml #1027
Workflow file for this run
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
on: | |
push: | |
branches: [main] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
OPTIMISM_NODE: ${{ secrets.OPTIMISM_NODE }} | |
OP_SEPOLIA_NODE: ${{ secrets.OP_SEPOLIA_NODE }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- uses: foundry-rs/foundry-toolchain@v1 | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm run lint | |
- run: rm -rf cache/fuzz cache/invariant | |
- run: forge build | |
- run: pnpm run coverage | |
- uses: codecov/codecov-action@v4 | |
if: always() | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: lcov.info,coverage/lcov.info |