forked from Synthetixio/erc7412
-
Notifications
You must be signed in to change notification settings - Fork 0
108 lines (104 loc) · 4.42 KB
/
monorepo-integration-tests.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
name: Integration tests
on:
push:
branches: ["**"]
paths-ignore:
- packages/fuel-*/**
- packages/gelato-*/**
- packages/ton-*/**
- packages/starknet-*/**
- packages/cli/**
- packages/custom-urls-manifest-updater/**
- packages/data-analytics/**
- packages/eth-contracts/**
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
integration-tests-core:
uses: ./.github/workflows/integration-test-template.yml
with:
command: yarn ts-node src/simple-price-propagation-core.ts
secrets:
MONOREPO_PRIVATE_KEY: ${{ secrets.MONOREPO_PRIVATE_KEY }}
integration-tests-core-with-node-failure:
uses: ./.github/workflows/integration-test-template.yml
with:
command: yarn ts-node src/prices-updates-node-failures.ts
secrets:
MONOREPO_PRIVATE_KEY: ${{ secrets.MONOREPO_PRIVATE_KEY }}
integration-tests-classic-relayer-not-all-nodes-deviate:
uses: ./.github/workflows/integration-test-template.yml
with:
command: yarn ts-node src/relayer-conditions/relayer-not-all-nodes-deviate.ts
secrets:
MONOREPO_PRIVATE_KEY: ${{ secrets.MONOREPO_PRIVATE_KEY }}
integration-test-classic-relayer-condition-cron:
uses: ./.github/workflows/integration-test-template.yml
with:
command: yarn ts-node src/relayer-conditions/relayer-cron-condition.ts
secrets:
MONOREPO_PRIVATE_KEY: ${{ secrets.MONOREPO_PRIVATE_KEY }}
integration-test-classic-relayer-condition-time:
uses: ./.github/workflows/integration-test-template.yml
with:
command: yarn ts-node src/relayer-conditions/relayer-time-condition.ts
secrets:
MONOREPO_PRIVATE_KEY: ${{ secrets.MONOREPO_PRIVATE_KEY }}
integration-test-classic-relayer-condition-value-deviation:
uses: ./.github/workflows/integration-test-template.yml
with:
command: yarn ts-node src/relayer-conditions/relayer-value-deviation-condition.ts
secrets:
MONOREPO_PRIVATE_KEY: ${{ secrets.MONOREPO_PRIVATE_KEY }}
integration-test-classic-relayer-condition-value-deviation-and-time:
uses: ./.github/workflows/integration-test-template.yml
with:
command: yarn ts-node src/relayer-conditions/relayer-value-and-time-condition.ts
secrets:
MONOREPO_PRIVATE_KEY: ${{ secrets.MONOREPO_PRIVATE_KEY }}
integration-test-classic-relayer-one-node-down:
uses: ./.github/workflows/integration-test-template.yml
with:
command: yarn ts-node src/relayer-conditions/relayer-one-rpc-down.ts
secrets:
MONOREPO_PRIVATE_KEY: ${{ secrets.MONOREPO_PRIVATE_KEY }}
integration-test-gateway-cache:
uses: ./.github/workflows/integration-test-template.yml
with:
command: yarn ts-node src/gateway-cache-test.ts
secrets:
MONOREPO_PRIVATE_KEY: ${{ secrets.MONOREPO_PRIVATE_KEY }}
integration-test-gateway-history:
uses: ./.github/workflows/integration-test-template.yml
with:
command: yarn ts-node src/gateway-history-test.ts
secrets:
MONOREPO_PRIVATE_KEY: ${{ secrets.MONOREPO_PRIVATE_KEY }}
integration-test-price-broadcasting:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- name: Setup monorepo access
uses: redstone-finance/ssh-agent@v0.8.1
with:
ssh-private-key: ${{ secrets.MONOREPO_PRIVATE_KEY }}
- uses: actions/setup-node@v3
with:
node-version: 16.20.0
- name: Install deps
run: yarn --frozen-lockfile --immutable
- name: Build all
run: |
STATUS_TMP=$(pwd)/status.tmp
echo 0 > $STATUS_TMP
cd .. && git clone https://github.com/redstone-finance/redstone-cache-layer.git && cd redstone-cache-layer && yarn --frozen-lockfile --immutable && yarn build || echo 1 > $STATUS_TMP &
cd .. && git clone https://github.com/redstone-finance/redstone-cache-layer-integration-test-utils.git && cd redstone-cache-layer-integration-test-utils && yarn --frozen-lockfile --immutable && yarn compile || echo 2 > $STATUS_TMP &
cd packages/oracle-node && yarn build || echo 3 > $STATUS_TMP &
cd packages/on-chain-relayer && yarn compile && yarn build || echo 4 > $STATUS_TMP &
wait
exit $(cat $STATUS_TMP)
- name: "Run integration tests: yarn ts-node src/simple-price-broadcasting.ts"
working-directory: packages/integration
run: yarn ts-node src/simple-price-broadcasting.ts