diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index b154883a3..f8133b5d9 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -94,7 +94,64 @@ jobs: working-directory: target/ - name: Run ZNDSL integration tests - run: ./integration-tests/scripts/deploy-zombienet.sh --test + run: | + cd integration-tests + ./scripts/download-polkadot.sh + ./scripts/deploy-zombienet.sh --test + + zombienet_zeitgeist_upgrade: + name: Zombienet Zeitgeist Runtime Upgrade + runs-on: ubuntu-20.04 + needs: ["build_parachain"] + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Install build tools + run: ./scripts/init.sh + + - uses: pnpm/action-setup@v2 + with: + version: 8 + - uses: actions/setup-node@v3 + with: + node-version: 20.x + cache: "pnpm" + cache-dependency-path: "./integration-tests/pnpm-lock.yaml" + + - name: Install pnpm packages + run: | + cd integration-tests + pnpm install + + - name: Cache Dependencies + uses: Swatinem/rust-cache@v1 + + - name: Create local folders + run: | + mkdir -p target/release/wbuild/battery-station-runtime/ + mkdir -p integration-tests/tmp + + - name: Download runtime + uses: actions/download-artifact@v3.0.2 + with: + name: runtimes + path: target/release/wbuild/battery-station-runtime/ + + - name: Download binary + uses: actions/download-artifact@v3.0.2 + with: + name: binaries + path: target/release/zeitgeist + + - name: Display structure of downloaded files + run: ls -R + working-directory: target/ + + - name: Test zeitgeist runtime upgrade using Zombienet + run: | + cd integration-tests + pnpm exec moonwall test zombienet_zeitgeist_upgrade chopsticks_battery_station_upgrade: name: Runtime Upgrade Battery Station