git.delta.rocks / unique-network / refs/commits / 8fcfaf37f8d3

difftreelog

Readyness script update.

Alexander Aksenov2022-08-04parent: #0be66a6.patch.diff
in: master

2 files changed

modified.docker/readyness.jsdiffbeforeafterboth
3const main = async () => {3const main = async () => {
4 const wsEndpoint = 'ws://127.0.0.1:9944'4 const wsEndpoint = 'ws://127.0.0.1:9944'
5 const api = new ApiPromise({provider: new WsProvider(wsEndpoint)});5 const api = new ApiPromise({provider: new WsProvider(wsEndpoint)});
6 await api.isReady;6 await api.isReadyOrError;
77
8 const head = (await api.rpc.chain.getHeader()).number.toNumber();8 const head = (await api.rpc.chain.getHeader()).number.toNumber();
9 if(head < 1) throw Error('No block #1');9 if(head < 1) throw Error('No block #1');
modified.github/workflows/node_build_test.ymldiffbeforeafterboth
--- 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