-
Notifications
You must be signed in to change notification settings - Fork 749
111 lines (108 loc) · 4.69 KB
/
defi.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: Defi
on:
push:
branches: [master]
repository_dispatch:
workflow_dispatch:
defaults:
run:
working-directory: defi
jobs:
changes:
runs-on: ubuntu-latest
outputs:
defi: ${{ steps.filter.outputs.defi }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
defi:
- 'defi/**'
deploy:
needs: changes
if: ${{ needs.changes.outputs.defi == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: git submodule update --init --recursive
- name: Get Node.js
uses: actions/setup-node@v1
with:
node-version: '16'
- run: echo "TODAY=$(date +%Y%m%d)" >> $GITHUB_ENV
- name: Get jest cache
uses: actions/cache@v3
with:
path: /tmp/jest-cache
key: ${{ runner.os }}-jest-${{ env.TODAY }}
- run: cd DefiLlama-Adapters && git checkout main && git pull
- run: cd dimension-adapters && git checkout master && git pull
- run: cd emissions-adapters && git checkout master && git pull
- run: npm ci || npm i
- name: Run tests
run: npm t data && npx esbuild src/protocols/import.test.ts --bundle --log-limit=0 --platform=node | node
env:
ETHEREUM_RPC: ETHEREUM_RPC
- name: Deploy infrastructure stack
run: npm run deploy:prod
env:
ETHEREUM_RPC: ${{ secrets.ETHEREUM_RPC }}
POLYGON_RPC: ${{ secrets.POLYGON_RPC }}
BSC_RPC: ${{ secrets.BSC_RPC }}
FANTOM_RPC: ${{ secrets.FANTOM_RPC }}
ARBITRUM_RPC: ${{ secrets.ARBITRUM_RPC }}
OPTIMISM_RPC: ${{ secrets.OPTIMISM_RPC }}
XDAI_RPC: ${{ secrets.XDAI_RPC }}
HARMONY_RPC: ${{ secrets.HARMONY_RPC }}
SOLANA_RPC: ${{ secrets.SOLANA_RPC }}
MOONRIVER_RPC: ${{ secrets.MOONRIVER_RPC }}
CRONOS_RPC: ${{ secrets.CRONOS_RPC }}
COVALENT_KEY: ${{ secrets.COVALENT_KEY }}
OUTDATED_WEBHOOK: ${{ secrets.OUTDATED_WEBHOOK }}
HOURLY_OUTDATED_WEBHOOK: ${{ secrets.HOURLY_OUTDATED_WEBHOOK }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SPIKE_WEBHOOK: ${{ secrets.SPIKE_WEBHOOK }}
CLOUDWATCH_WEBHOOK_URL: ${{ secrets.CLOUDWATCH_WEBHOOK_URL }}
DROPS_WEBHOOK: ${{ secrets.DROPS_WEBHOOK }}
EULER_MONGODB_APIKEY: ${{ secrets.EULER_MONGODB_APIKEY }}
INFLUXDB_TOKEN: ${{ secrets.INFLUXDB_TOKEN }}
FATHOM_SECRET: ${{ secrets.FATHOM_SECRET }}
DAILY_GROWTH_WEBHOOK: ${{ secrets.DAILY_GROWTH_WEBHOOK }}
MONITOR_WEBHOOK: ${{ secrets.MONITOR_WEBHOOK }}
STALE_COINS_ADAPTERS_WEBHOOK: ${{ secrets.STALE_COINS_ADAPTERS_WEBHOOK }}
TEAM_WEBHOOK: ${{ secrets.TEAM_WEBHOOK }}
PROD_VYBE_API_KEY: ${{ secrets.PROD_VYBE_API_KEY }}
BIT_QUERY_API_KEY: ${{ secrets.BIT_QUERY_API_KEY }}
VOLUMES_WEBHOOK: ${{ secrets.VOLUMES_WEBHOOK }}
FEES_WEBHOOK: ${{ secrets.FEES_WEBHOOK }}
DERIVATIVES_WEBHOOK: ${{ secrets.DERIVATIVES_WEBHOOK }}
AGGREGATORS_WEBHOOK: ${{ secrets.AGGREGATORS_WEBHOOK }}
OPTIONS_WEBHOOK: ${{ secrets.OPTIONS_WEBHOOK }}
ZEROx_API_KEY: ${{ secrets.ZEROx_API_KEY }}
PANCAKESWAP_OPBNB_SUBGRAPH: ${{ secrets.PANCAKESWAP_OPBNB_SUBGRAPH }}
PERENNIAL_V2_SUBGRAPH_API_KEY: ${{ secrets.PERENNIAL_V2_SUBGRAPH_API_KEY }}
INDEXER_DB: ${{ secrets.INDEXER_DB }}
AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }}
AGGREGATOR_DB_URL: ${{ secrets.AGGREGATOR_DB_URL }}
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
R2_ENDPOINT: ${{ secrets.R2_ENDPOINT }}
INDEXA_DB: ${{ secrets.INDEXA_DB }}
DL_NEWS_API: ${{ secrets.DL_NEWS_API }}
DL_NEWS_ACCESS_TOKEN: ${{ secrets.DL_NEWS_ACCESS_TOKEN }}
COINS_DB: ${{ secrets.COINS_DB }}
ACCOUNTS_DB: ${{ secrets.ACCOUNTS_DB }}
CG_KEY: ${{ secrets.CG_KEY }}
ERROR_DB: ${{ secrets.ERROR_DB }}
ERROR_REPORTS_WEBHOOK: ${{ secrets.ERROR_REPORTS_WEBHOOK }}
ERROR_REPORTS_DB: ${{ secrets.ERROR_REPORTS_DB }}
ALLIUM_API_KEY: ${{ secrets.ALLIUM_API_KEY }}
FLIPSIDE_API_KEY: ${{ secrets.FLIPSIDE_API_KEY }}
COINGLASS_KEY: ${{ secrets.COINGLASS_KEY }}
UNLOCKS_WEBHOOK: ${{ secrets.UNLOCKS_WEBHOOK }}
SMARDEX_SUBGRAPH_API_KEY: ${{ secrets.SMARDEX_SUBGRAPH_API_KEY }}
DUNE_API_KEYS: ${{ secrets.DUNE_API_KEYS }}
APIKEY: ${{ secrets.APIKEY }}