From 18e41fbe981c9045edef8d6ce036f5c71bb68542 Mon Sep 17 00:00:00 2001 From: nabarun Date: Fri, 11 Mar 2022 15:20:56 +0530 Subject: [PATCH] Update github workflow with gap filling service integration test --- .github/workflows/on-pr.yaml | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/.github/workflows/on-pr.yaml b/.github/workflows/on-pr.yaml index 6d11e740..cbbdb627 100644 --- a/.github/workflows/on-pr.yaml +++ b/.github/workflows/on-pr.yaml @@ -42,8 +42,6 @@ jobs: ETH_FORWARD_ETH_CALLS: false ETH_PROXY_ON_ERROR: false ETH_HTTP_PATH: "" - WATCHED_ADDRESS_GAP_FILLER_ENABLED: true - WATCHED_ADDRESS_GAP_FILLER_INTERVAL: 5 strategy: matrix: go-version: [1.16.x] @@ -93,3 +91,34 @@ jobs: while [ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:8081)" != "200" ]; do echo "waiting for ipld-eth-server..." && sleep 5; done && \ while [ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:8545)" != "200" ]; do echo "waiting for geth-statediff..." && sleep 5; done && \ make integrationtest + + integrationtest_watchedaddress_gapfillingservice: + name: Run integration tests for watched addresses with gap filling service enabled + env: + GOPATH: /tmp/go + DB_WRITE: true + ETH_FORWARD_ETH_CALLS: false + ETH_PROXY_ON_ERROR: false + ETH_HTTP_PATH: "" + WATCHED_ADDRESS_GAP_FILLER_ENABLED: true + WATCHED_ADDRESS_GAP_FILLER_INTERVAL: 2 + strategy: + matrix: + go-version: [1.16.x] + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Create GOPATH + run: mkdir -p /tmp/go + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + - uses: actions/checkout@v2 + - name: Run database + run: docker-compose -f docker-compose.test.yml -f docker-compose.yml up -d ipld-eth-db dapptools contract eth-server + - name: Test + run: | + while [ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:8081)" != "200" ]; do echo "waiting for ipld-eth-server..." && sleep 5; done && \ + while [ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:8545)" != "200" ]; do echo "waiting for geth-statediff..." && sleep 5; done && \ + make integrationtest