-
Notifications
You must be signed in to change notification settings - Fork 7
47 lines (38 loc) · 1.08 KB
/
_contracts.yml
File metadata and controls
47 lines (38 loc) · 1.08 KB
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
name: CI
on:
workflow_call:
secrets:
CODECOV_TOKEN:
required: true
permissions:
contents: read
env:
FOUNDRY_PROFILE: ci
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jobs:
check:
name: contracts
runs-on: ubuntu-latest
defaults:
run:
working-directory: contracts
steps:
- uses: actions/checkout@v6.0.2
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: stable
- name: Build
run: |
forge build
- name: Run test with coverage
run: |
forge coverage --report lcov
- name: Upload coverage reports to Codecov
if: ${{ env.CODECOV_TOKEN != '' }}
uses: codecov/codecov-action@v5
with:
files: ./lcov.info
token: ${{ env.CODECOV_TOKEN }}
slug: ArkEcosystem/mainsail
flags: contracts