Browse Source

workflow: network tests let tests fail if image not found, re-run manually

Mokhtar Naamani 4 years ago
parent
commit
7c658906d5
1 changed files with 6 additions and 16 deletions
  1. 6 16
      .github/workflows/run-network-tests.yml

+ 6 - 16
.github/workflows/run-network-tests.yml

@@ -29,23 +29,13 @@ jobs:
         run: yarn install --frozen-lockfile
       - name: Ensure tests are runnable
         run: yarn workspace network-tests build
-      - name: Maybe fetch pre-built joystream/node Docker image
+      - name: Maybe build joystream/node Docker image from source
         run: |
-          # Always configure faster block production incase pull fails
-          # and we will build from source.
-          ./scripts/alter-block-creation-time.sh
-          export JOYSTREAM_NODE_TAG="${{ github.event.pull_request.base.ref }}"
-          echo "DEBUG: JOYSTREAM_NODE_TAG = ${JOYSTREAM_NODE_TAG}"
-          if [ "${{ env.GIT_DIFF }}" ]
-          then
-            echo "joystream-node source modified. Will build from source."
-          else
-            # Try to get image tagged with base branch name. If it fails we continue anyway,
-            # docker-compose will then bulid from srouce when it doesn't find the image.
-            echo "joystream-node source not modified. Will try to use pre-built image"
-            docker pull joystream/node:${JOYSTREAM_NODE_TAG} || echo "pull done."
-          fi
-      - name: Start chain (maybe build from source)
+          echo "joystream-node source modified. Will build from source."  
+          export JOYSTREAM_NODE_TAG=${{ github.event.pull_request.base.ref }}
+          docker-compose build
+        if: env.GIT_DIFF
+      - name: Start chain
         run: JOYSTREAM_NODE_TAG=${{ github.event.pull_request.base.ref }} docker-compose up -d
       - name: Execute network tests
         run: yarn workspace network-tests test