diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index c6a45ed95..d951072dc 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -10,7 +10,7 @@ env: jobs: build_parachain: name: Build Parachain - runs-on: ubuntu-latest + runs-on: [self-hosted, zeitgeist-runner] steps: - name: Checkout repository uses: actions/checkout@v2 @@ -46,7 +46,7 @@ jobs: zombienet_zndsl: name: ZNDSL Tests - runs-on: ubuntu-latest + runs-on: [self-hosted, zeitgeist-runner] needs: ["build_parachain"] steps: - name: Checkout repository @@ -72,18 +72,33 @@ jobs: - name: Cache Dependencies uses: Swatinem/rust-cache@v1 - - name: "Download binaries" + - name: Create local folders + run: | + mkdir -p target/release/wbuild/zeitgeist-runtime/ + mkdir -p integration-tests/tmp + + - name: Download runtime + uses: actions/download-artifact@v3.0.2 + with: + name: runtimes + path: target/release/wbuild/zeitgeist-runtime/ + + - name: Download binary uses: actions/download-artifact@v3.0.2 with: name: binaries - path: binaries/zeitgeist + path: target/release/zeitgeist + + - name: Display structure of downloaded files + run: ls -R + working-directory: target/ - name: Run ZNDSL integration tests run: ./integration-tests/scripts/deploy-zombienet.sh --test chopsticks_battery_station_upgrade: name: Runtime Upgrade Battery Station - runs-on: ubuntu-latest + runs-on: [self-hosted, zeitgeist-runner] needs: ["build_parachain"] steps: - name: Checkout repository @@ -114,12 +129,16 @@ jobs: mkdir -p target/release/wbuild/battery-station-runtime/ mkdir -p integration-tests/tmp - - name: "Download runtime" + - name: Download runtime uses: actions/download-artifact@v3.0.2 with: name: runtimes path: target/release/wbuild/battery-station-runtime/ + - name: Display structure of downloaded files + run: ls -R + working-directory: target/ + - name: Test battery station runtime upgrade using Chopsticks run: | cd integration-tests @@ -127,7 +146,7 @@ jobs: chopsticks_zeitgeist_upgrade: name: Runtime Upgrade Zeitgeist - runs-on: ubuntu-latest + runs-on: [self-hosted, zeitgeist-runner] needs: ["build_parachain"] steps: - name: Checkout repository @@ -164,6 +183,10 @@ jobs: name: runtimes path: target/release/wbuild/zeitgeist-runtime/ + - name: Display structure of downloaded files + run: ls -R + working-directory: target/ + - name: Test zeitgeist runtime upgrade using Chopsticks run: | cd integration-tests diff --git a/integration-tests/README.md b/integration-tests/README.md index 4974323d2..674bcdfae 100644 --- a/integration-tests/README.md +++ b/integration-tests/README.md @@ -33,12 +33,15 @@ import { ALITH_ADDRESS } from "@moonwall/util"; You should have installed `python` for using `sqlite3` and then used `pnpm rebuild && pnpm rebuild sqlite3`. -Most common commands: +Useful for integration testing: -- `pnpm exec moonwall test zombienet_zeitgeist_upgrade` -- `pnpm exec moonwall test chopsticks_zeitgeist_upgrade` +- `./integration-tests/scripts/deploy_zombienet.sh` - Deploy a local relay-parachain network for zombienet. +- `./integration-tests/scripts/deploy_zombienet.sh --test` - Run ZNDSL zombienet tests on a local relay-parachain network. +- `pnpm exec moonwall test zombienet_zeitgeist_upgrade` - Test Zeitgeist runtime upgrade on zombienet for the local network. +- `pnpm exec moonwall test chopsticks_zeitgeist_upgrade` - Test Zeitgeist runtime upgrade on chopsticks for the live network. +- `pnpm exec moonwall test chopsticks_battery_station_upgrade` - Test Battery Station runtime upgrade on chopsticks for the test network. -Other moonwall commands: +Possible moonwall commands: - `moonwall` : If you have globally installed moonwall, here is the most minimal entrypoint