-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (32 loc) · 1.12 KB
/
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
37
38
39
40
41
42
name: Foundry
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run foundry build
run: forge build --force --sizes
- name: Run foundry fmt check
run: forge fmt --check
- name: Run foundry tests
run: FOUNDRY_PROFILE=test forge test -vv --gas-report --ast
- name: Run foundry fuzzing
run: FOUNDRY_PROFILE=ci_fuzz forge test -vv
- name: Run foundry coverage
run: FOUNDRY_PROFILE=coverage forge coverage --report summary
- name: Run foundry invariants
run: forge clean && FOUNDRY_PROFILE=invariant forge test