diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml deleted file mode 100644 index 7cf7a2eb0..000000000 --- a/.github/workflows/integration-tests.yml +++ /dev/null @@ -1,106 +0,0 @@ -name: Integration test - -on: - push: - branches: [ main, chralt98-add-it-tests ] - -env: - CARGO_TERM_COLOR: always - -jobs: - zombienet_zndsl: - name: Zombienet ZNDSL Block Production - runs-on: ubuntu-latest - 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" - - - name: Install pnpm packages - run: | - cd integration-tests - pnpm install - - - name: Download polkadot binary - run: ./integration-tests/scripts/download-polkadot.sh - - - name: Cache Dependencies - uses: Swatinem/rust-cache@v1 - - - name: Run ZNDSL integration tests - run: ./integration-tests/scripts/deploy-zombienet.sh --test - - chopsticks_zeitgeist_upgrade: - name: Zeitgeist Chopsticks Runtime Upgrade - runs-on: ubuntu-latest - 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" - - - name: Install pnpm packages - run: | - cd integration-tests - pnpm install - - - name: Cache Dependencies - uses: Swatinem/rust-cache@v1 - - - name: Test zeitgeist runtime upgrade using Chopsticks - run: | - cd integration-tests - pnpm exec moonwall test chopsticks_zeitgeist_upgrade - - chopsticks_battery_station_upgrade: - name: Battery Station Chopsticks Runtime Upgrade - runs-on: ubuntu-latest - 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" - - - name: Install pnpm packages - run: | - cd integration-tests - pnpm install - - - name: Cache Dependencies - uses: Swatinem/rust-cache@v1 - - - name: Test battery station runtime upgrade using Chopsticks - run: | - cd integration-tests - pnpm exec moonwall test chopsticks_battery_station_upgrade \ No newline at end of file diff --git a/.github/workflows/it-chopsticks-battery-station.yml b/.github/workflows/it-chopsticks-battery-station.yml new file mode 100644 index 000000000..3604accb6 --- /dev/null +++ b/.github/workflows/it-chopsticks-battery-station.yml @@ -0,0 +1,41 @@ +name: Chopsticks Battery Station Integration Test + +on: + push: + branches: [ main, chralt98-add-it-tests ] + +env: + CARGO_TERM_COLOR: always + +jobs: + chopsticks_battery_station_upgrade: + name: Test Runtime Upgrade + runs-on: ubuntu-latest + 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: Test battery station runtime upgrade using Chopsticks + run: | + cd integration-tests + pnpm exec moonwall test chopsticks_battery_station_upgrade \ No newline at end of file diff --git a/.github/workflows/it-chopsticks-zeitgeist.yml b/.github/workflows/it-chopsticks-zeitgeist.yml new file mode 100644 index 000000000..9acf302f1 --- /dev/null +++ b/.github/workflows/it-chopsticks-zeitgeist.yml @@ -0,0 +1,41 @@ +name: Chopsticks Zeitgeist Integration Test + +on: + push: + branches: [ main, chralt98-add-it-tests ] + +env: + CARGO_TERM_COLOR: always + +jobs: + chopsticks_zeitgeist_upgrade: + name: Test Runtime Upgrade + runs-on: ubuntu-latest + 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: Test zeitgeist runtime upgrade using Chopsticks + run: | + cd integration-tests + pnpm exec moonwall test chopsticks_zeitgeist_upgrade \ No newline at end of file diff --git a/.github/workflows/it-zombienet.yml b/.github/workflows/it-zombienet.yml new file mode 100644 index 000000000..f048a6e40 --- /dev/null +++ b/.github/workflows/it-zombienet.yml @@ -0,0 +1,42 @@ +name: Zombienet Integration Test + +on: + push: + branches: [ main, chralt98-add-it-tests ] + +env: + CARGO_TERM_COLOR: always + +jobs: + zombienet_zndsl: + name: Test ZNDSL Block Production + runs-on: ubuntu-latest + 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: Download polkadot binary + run: ./integration-tests/scripts/download-polkadot.sh + + - name: Cache Dependencies + uses: Swatinem/rust-cache@v1 + + - name: Run ZNDSL integration tests + run: ./integration-tests/scripts/deploy-zombienet.sh --test \ No newline at end of file