-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (54 loc) · 1.68 KB
/
ci-connectors.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
name: Connectors CI
env:
CI: true
on:
push:
branches: "*"
paths:
- packages/connectors/**
pull_request:
branches: "*"
paths:
- packages/connectors/**
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up environment
uses: ./.github/actions/setup
- name: Lint
run: yarn workspace @mimic-fi/v3-connectors lint
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up environment
uses: ./.github/actions/setup
- name: Build
run: yarn build
- name: Test
run: yarn workspace @mimic-fi/v3-connectors test
integration:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up environment
uses: ./.github/actions/setup
- name: Set up hardhat config
run: .github/scripts/setup-hardhat-config.sh ${{secrets.MAINNET_RPC}} ${{secrets.POLYGON_RPC}} ${{secrets.OPTIMISM_RPC}} ${{secrets.ARBITRUM_RPC}} ${{secrets.GNOSIS_RPC}} ${{secrets.AVALANCHE_RPC}} ${{secrets.BSC_RPC}} ${{secrets.FANTOM_RPC}}
- name: Build
run: yarn build
- name: Test mainnet
run: yarn workspace @mimic-fi/v3-connectors test:mainnet
- name: Test polygon
run: yarn workspace @mimic-fi/v3-connectors test:polygon
- name: Test optimism
run: yarn workspace @mimic-fi/v3-connectors test:optimism
- name: Test arbitrum
run: yarn workspace @mimic-fi/v3-connectors test:arbitrum
- name: Test avalanche
run: yarn workspace @mimic-fi/v3-connectors test:avalanche