-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.08 KB
/
foundry.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
47
48
49
name: Foundry
on:
workflow_dispatch:
push:
branches: [main, develop, feat_unit_tests_full_coverage]
pull_request:
branches: [main, develop]
env:
FOUNDRY_PROFILE: ci
defaults:
run:
working-directory: foundry
jobs:
test-and-coverage:
name: Run tests and generate coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1.2.0
- name: Run Forge tests and generate LCOV coverage report
run: |
forge test -vvv
forge coverage --report lcov
id: test
coverage_report:
name: Enforce 100% coverage
needs: test-and-coverage
runs-on: ubuntu-latest
steps:
- name: Setup LCOV
uses: hrishikesh-kadam/setup-lcov@v1
- name: Report code coverage and check threshold
uses: zgosalvez/github-actions-report-lcov@v3
with:
coverage-files: 'lcov.info'
minimum-coverage: 100
update-comment: false
id: coverage