fix: blockchain providers #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |