Skip to content

.github/workflows/test.yml #1027

.github/workflows/test.yml

.github/workflows/test.yml #1027

Workflow file for this run

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