-
Notifications
You must be signed in to change notification settings - Fork 34
36 lines (35 loc) · 954 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-25f24e677a6a32a62512ad4f561995589ac2c7dc
- 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