-
Notifications
You must be signed in to change notification settings - Fork 45
65 lines (53 loc) · 1.41 KB
/
foundry.yaml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Foundry tests
on:
push:
branches:
- master
pull_request:
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
jobs:
unit:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
architecture:
- "x64"
python-version:
- "3.10"
node_version:
- 16
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: Install Ape
uses: ApeWorX/[email protected]
with:
python-version: '3.10'
- name: install vyper
run: pip install git+https://github.com/vyperlang/vyper
- name: Compile contracts
# Compile Ape contracts to get dependencies
run: ape compile --force --size
- name: Install Vyper
run: pip install vyper==0.3.7
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Foundry tests
run: forge test -vvv