-
Notifications
You must be signed in to change notification settings - Fork 29
59 lines (48 loc) · 1.34 KB
/
protocol-tests.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
name: Protocol Tests
on:
pull_request:
types: [opened, synchronize]
paths:
- 'protocol/**'
jobs:
e2eTest:
name: Hardhat Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'yarn'
cache-dependency-path: protocol/yarn.lock
- run: yarn install
working-directory: protocol
- run: yarn compile
working-directory: protocol
- run: yarn test
working-directory: protocol
env:
TESTS_MAINNET_RPC_URL: ${{ secrets.TESTS_MAINNET_RPC_URL }}
fuzzTest:
name: Foundry Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'yarn'
cache-dependency-path: protocol/yarn.lock
- run: yarn install
working-directory: protocol
- name: Install Foundry
uses: foundry-rs/[email protected]
with:
version: nightly-ca67d15f4abd46394b324c50e21e66f306a1162d
- run: forge --version
working-directory: protocol
- name: Run tests
run: FOUNDRY_PROFILE=ci forge test --gas-report
working-directory: protocol