-
Notifications
You must be signed in to change notification settings - Fork 3
68 lines (68 loc) · 2.04 KB
/
tests.yml
File metadata and controls
68 lines (68 loc) · 2.04 KB
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
68
name: Tests
on: [push]
env:
JSON_RPC: ${{ secrets.JSON_RPC }}
ALCHEMY_MAINNET: ${{ secrets.ALCHEMY_MAINNET }}
ALCHEMY_ARBITRUM: ${{ secrets.ALCHEMY_ARBITRUM }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Checkout
uses: actions/checkout@v2
with:
# Needed for commands that depend on git tags
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Install dependencies
run: |
yarn
- name: Prettier
run: |
yarn prettier
- name: Lint
run: |
yarn lint
coverage:
runs-on: ubuntu-latest
steps:
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Checkout
uses: actions/checkout@v2
with:
# Needed for commands that depend on git tags
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Install dependencies
run: |
yarn
- name: Compile contracts
run: |
yarn compile
- name: 💡 Run contract tests, except mainnet
run: |
yarn test:coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
mainnet-fork:
runs-on: ubuntu-latest
steps:
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Checkout
uses: actions/checkout@v2
with:
# Needed for commands that depend on git tags
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Install dependencies
run: |
yarn
- name: Compile contracts
run: |
yarn compile
- name: 💡 Run contract mainnet tests
run: |
yarn test:mainnet