Browse Source

network-tests: use pre-built joystream/node image

Mokhtar Naamani 4 years ago
parent
commit
664037c323
2 changed files with 8 additions and 2 deletions
  1. 5 1
      .github/workflows/run-network-tests.yml
  2. 3 1
      docker-compose-no-build.yml

+ 5 - 1
.github/workflows/run-network-tests.yml

@@ -18,9 +18,13 @@ jobs:
         run: yarn install --frozen-lockfile
       - name: Ensure tests are runnable
         run: yarn workspace network-tests build
+      # TODO: determin if we will build a new joystream/node image from source
+      # our use a prebuilt image. Build if PR has joystream-node or runtime code changes
+      # For prebuilt image use `joytream/node:${base_branch}` tag would be the PR base branch 
+      # ie. the 'target' branch of the PR. For now we just use the pre-built image
       - name: Configure block production to 2000ms (fatser tests)
         run: ./scripts/alter-block-creation-time.sh
       - name: Build and start chain
-        run: docker-compose up -d
+        run: docker-compose --file docker-compose-no-build.yml up -d
       - name: Execute network tests
         run: yarn workspace network-tests test

+ 3 - 1
docker-compose-no-build.yml

@@ -4,7 +4,9 @@
 version: "3"
 services:
   node:
-    image: joystream/node
+    # TODO: make the tag come from env variable
+    # image: joystream/node:${NODE_TAG}
+    image: joystream/node:babylon
     container_name: joystream-node
     command: --dev --alice --validator --unsafe-ws-external --rpc-cors=all
     ports: