-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (37 loc) · 976 Bytes
/
checks.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
43
44
45
46
name: checks
on: push
env:
FOUNDRY_PROFILE: ci
jobs:
tests:
name: Foundry tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Set up environment
uses: ./.github/actions/setup
- name: Install dependencies
run: forge install
- name: Check contract sizes
run: forge build --sizes --skip test
id: build
- name: Run tests
run: FOUNDRY_PROFILE="deep" forge test -v
id: test
- name: Check format
run: forge fmt --check
id: format
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up environment
uses: ./.github/actions/setup
- name: Generate coverage
run: forge coverage --report lcov
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}