-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (41 loc) · 1.08 KB
/
contracts-ci.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
name: Smart Contracts CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [18.x, 20.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./packages/contracts
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run Forge build
run: |
forge --version
forge build --via-ir
id: build
- name: Run Forge tests
run: |
forge test
id: test
- name: Run Forge coverage
run: |
forge coverage --report lcov
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: nation3/agreements-contracts