-
Notifications
You must be signed in to change notification settings - Fork 37
50 lines (40 loc) · 1.09 KB
/
contracts.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
50
name: Solidity
on:
push:
branches:
- master
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
with:
version: nightly
- name: Install deps
working-directory: contracts
run: forge install
- name: Run forge tests
working-directory: contracts
run: forge test
bindings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Foundry
uses: onbjerg/foundry-toolchain@v1
with:
version: nightly
- name: Pull library deps
working-directory: contracts
run: forge install
- name: Check fmt
working-directory: contracts
run: forge fmt --check
- name: Build contracts before checking bindings are correct
working-directory: contracts
run: forge build --sizes
- name: Check bindings are correct
run: forge bind --bindings-path ./bindings --root ./contracts --crate-name bindings