Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Chralt98 committed Dec 14, 2023
1 parent 4e38cd4 commit 6b4d57d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 11 deletions.
37 changes: 30 additions & 7 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -114,20 +129,24 @@ 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
pnpm exec moonwall test chopsticks_battery_station_upgrade
chopsticks_zeitgeist_upgrade:
name: Runtime Upgrade Zeitgeist
runs-on: ubuntu-latest
runs-on: [self-hosted, zeitgeist-runner]
needs: ["build_parachain"]
steps:
- name: Checkout repository
Expand Down Expand Up @@ -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
Expand Down
11 changes: 7 additions & 4 deletions integration-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6b4d57d

Please sign in to comment.