-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (61 loc) · 1.99 KB
/
test.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Solidity CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: yarn
- name: Lint Contracts
run: yarn run lint
unit_test:
runs-on: ubuntu-latest
timeout-minutes: 120
env:
GITHUB_TOKEN: ${{ secrets.GHP_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup
- name: Run Unit Tests
run: brownie test -m 'not mainnetFork and not hypothesis and not endToEnd' --failfast --hypothesis-seed 42
property_test:
runs-on: ubuntu-latest
timeout-minutes: 120
env:
GITHUB_TOKEN: ${{ secrets.GHP_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup
- name: Run Property Tests
run: brownie test -m 'not mainnetFork and hypothesis and not endToEnd' --failfast --hypothesis-seed 42
integration_test:
runs-on: ubuntu-latest
timeout-minutes: 120
env:
GITHUB_TOKEN: ${{ secrets.GHP_TOKEN }}
WEB3_INFURA_PROJECT_ID: ${{ secrets.WEB3_INFURA_PROJECT_ID }}
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup
- name: Run Integration Tests
run: brownie test -m mainnetFork --network mainnet-fork --failfast --hypothesis-seed 42
# end_to_end_test:
# runs-on: ubuntu-latest
# timeout-minutes: 120
# env:
# GITHUB_TOKEN: ${{ secrets.GHP_TOKEN }}
# WEB3_INFURA_PROJECT_ID: ${{ secrets.WEB3_INFURA_PROJECT_ID }}
# COINBASE_API_KEY: ${{ secrets.COINBASE_API_KEY }}
# COINBASE_API_PASSPHRASE: ${{ secrets.COINBASE_API_PASSPHRASE }}
# COINBASE_API_SECRET: ${{ secrets.COINBASE_API_SECRET }}
# steps:
# - uses: actions/checkout@v2
# - uses: ./.github/actions/setup
# - name: Run end to end Tests
# run: brownie test -m endToEnd --network mainnet-fork --failfast --hypothesis-seed 42