-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (33 loc) · 974 Bytes
/
ci.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
name: CI
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
mongodb-version: [4.4]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install modules
run: yarn
- name: Run ESLint
run: yarn lint
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.6.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Run Tests
env:
MATIC_RPC_URL: https://rpc.ankr.com/polygon
MAINNET_RPC_URL: https://rpc.ankr.com/eth
MAINNET_WS_URL: wss://eth.llamarpc.com
ARBITRUM_RPC_URL: https://rpc.ankr.com/arbitrum
BASE_RPC_URL: https://developer-access-mainnet.base.org
GET_POOL_DATA_BATCH_SIZE: 2
GET_VAULT_DATA_BATCH_SIZE: 2
run: yarn test