From 8fcfaf37f8d357a683250638b29410592988126a Mon Sep 17 00:00:00 2001 From: Alexander Aksenov Date: Thu, 04 Aug 2022 14:50:30 +0000 Subject: [PATCH] Readyness script update. --- --- a/.docker/readyness.js +++ b/.docker/readyness.js @@ -3,7 +3,7 @@ const main = async () => { const wsEndpoint = 'ws://127.0.0.1:9944' const api = new ApiPromise({provider: new WsProvider(wsEndpoint)}); - await api.isReady; + await api.isReadyOrError; const head = (await api.rpc.chain.getHeader()).number.toNumber(); if(head < 1) throw Error('No block #1'); --- a/.github/workflows/node_build_test.yml +++ b/.github/workflows/node_build_test.yml @@ -100,16 +100,16 @@ env: RPC_URL: http://127.0.0.1:9933/ -# - name: Test Report -# uses: phoenix-actions/test-reporting@v8 -# id: test-report # Set ID reference for step -# if: success() || failure() # run this step even if previous step failed -# with: -# name: Tests ${{ matrix.network }} # Name of the check run which will be created -# path: tests/mochawesome-report/test-*.json # Path to test results -# reporter: mochawesome-json -# fail-on-error: 'false' + - name: Test Report + uses: phoenix-actions/test-reporting@v8 + id: test-report # Set ID reference for step + if: success() || failure() # run this step even if previous step failed + with: + name: Tests ${{ matrix.network }} # Name of the check run which will be created + path: tests/mochawesome-report/test-*.json # Path to test results + reporter: mochawesome-json + fail-on-error: 'false' -# - name: Stop running containers -# if: always() # run this step always -# run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down + - name: Stop running containers + if: always() # run this step always + run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down -- gitstuff