Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to run intergation test workflow on tag pushes #1308

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 21 additions & 20 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Integration Tests

on:
workflow_dispatch:
push:
tags:
- '^v[0-9]+.[0-9]+.[0-9]+(-rc[0-9]+)?$'
- "^v[0-9]+.[0-9]+.[0-9]+(-rc[0-9]+)?$"

env:
CARGO_TERM_COLOR: always
Expand All @@ -21,29 +22,29 @@ jobs:

- name: Build Parachain
run: cargo build --release --features parachain

- name: Save runtime wasm
run: |
mkdir -p runtimes
cp target/release/wbuild/battery-station-runtime/battery_station_runtime.compact.compressed.wasm runtimes/;
cp target/release/wbuild/zeitgeist-runtime/zeitgeist_runtime.compact.compressed.wasm runtimes/;
mkdir -p runtimes
cp target/release/wbuild/battery-station-runtime/battery_station_runtime.compact.compressed.wasm runtimes/;
cp target/release/wbuild/zeitgeist-runtime/zeitgeist_runtime.compact.compressed.wasm runtimes/;

- name: Upload runtimes
uses: actions/[email protected]
with:
name: runtimes
path: runtimes
name: runtimes
path: runtimes

- name: Save zeitgeist binary
run: |
mkdir -p binaries
cp target/release/zeitgeist binaries/;
mkdir -p binaries
cp target/release/zeitgeist binaries/;

- name: Upload binary
uses: actions/[email protected]
with:
name: binaries
path: binaries
name: binaries
path: binaries

zombienet_zndsl:
name: ZNDSL Tests
Expand All @@ -64,7 +65,7 @@ jobs:
node-version: 20.x
cache: "pnpm"
cache-dependency-path: "./integration-tests/pnpm-lock.yaml"

- name: Install pnpm packages
run: |
cd integration-tests
Expand All @@ -87,9 +88,9 @@ jobs:
- name: Download binary
uses: actions/[email protected]
with:
name: binaries
path: target/release
name: binaries
path: target/release

- name: Display structure of downloaded files
run: ls -R
working-directory: target/
Expand Down Expand Up @@ -121,7 +122,7 @@ jobs:
node-version: 20.x
cache: "pnpm"
cache-dependency-path: "./integration-tests/pnpm-lock.yaml"

- name: Install pnpm packages
run: |
cd integration-tests
Expand All @@ -144,8 +145,8 @@ jobs:
- name: Download binary
uses: actions/[email protected]
with:
name: binaries
path: target/release
name: binaries
path: target/release

- name: Display structure of downloaded files
run: ls -R
Expand All @@ -154,7 +155,7 @@ jobs:
- name: Test zeitgeist runtime upgrade using Zombienet
run: |
chmod uog+x target/release/zeitgeist

cd integration-tests
pnpm exec moonwall test zombienet_zeitgeist_upgrade

Expand All @@ -177,7 +178,7 @@ jobs:
node-version: 20.x
cache: "pnpm"
cache-dependency-path: "./integration-tests/pnpm-lock.yaml"

- name: Install pnpm packages
run: |
cd integration-tests
Expand Down
Loading