Forráskód Böngészése

network-tests: integration tests both with runtime upgrade and without

Mokhtar Naamani 4 éve
szülő
commit
49910bbe2e
1 módosított fájl, 27 hozzáadás és 5 törlés
  1. 27 5
      .github/workflows/run-network-tests.yml

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

@@ -79,7 +79,7 @@ jobs:
           path: joystream-node-docker-image.tar.gz
   
   network_tests_1:
-    name: Network Integration Runtime Tests
+    name: Integration Tests (Runtime Upgrade)
     needs: build_images
     runs-on: ubuntu-latest
     steps:
@@ -103,6 +103,30 @@ jobs:
         run: tests/network-tests/run-tests.sh
 
   network_tests_2:
+    name: Integration Tests (New Chain)
+    needs: build_images
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v1
+      - uses: actions/setup-node@v1
+        with:
+          node-version: '12.x'
+      - name: Get artifacts
+        uses: actions/download-artifact@v2
+        with:
+          name: ${{ needs.build_images.outputs.use_artifact }}
+      - name: Install artifacts
+        run: |
+          docker load --input joystream-node-docker-image.tar.gz
+          docker images
+      - name: Install packages and dependencies
+        run: yarn install --frozen-lockfile
+      - name: Ensure tests are runnable
+        run: yarn workspace network-tests build
+      - name: Execute network tests
+        run: RUNTIME=latest tests/network-tests/run-tests.sh
+
+  network_tests_3:
     name: Content Directory Initialization
     needs: build_images
     runs-on: ubuntu-latest
@@ -128,7 +152,7 @@ jobs:
       - name: Initialize the content directory
         run: yarn workspace cd-schemas initialize:dev
 
-  network_tests_3:
+  network_tests_4:
     name: Storage Node Tests
     needs: build_images
     runs-on: ubuntu-latest
@@ -146,9 +170,7 @@ jobs:
           docker load --input joystream-node-docker-image.tar.gz
           docker images
       - name: Install packages and dependencies
-        run: |
-          yarn install --frozen-lockfile
-          yarn workspace storage-node build
+        run: yarn install --frozen-lockfile
       - name: Build storage node
         run: yarn workspace storage-node build
       - name: Start Services