-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
75 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Description: Smoke test of the network | ||
Network: ../../zombienet.toml | ||
Creds: config | ||
|
||
alice: is up | ||
bob: is up | ||
charlie: is up | ||
|
||
alice: log line matches "Imported #[0-9]+" within 20 seconds | ||
bob: log line matches "Imported #[0-9]+" within 20 seconds | ||
|
||
alice: parachain 1000 is registered within 60 seconds | ||
alice: parachain 1000 block height is at least 10 within 200 seconds | ||
|
||
alice: count of log lines matching "err=" is 0 within 10 seconds | ||
alice: count of log lines matching "Error" is 0 within 10 seconds | ||
|
||
bob: count of log lines matching "err=" is 0 within 10 seconds | ||
bob: count of log lines matching "Error" is 0 within 10 seconds | ||
|
||
charlie: count of log lines matching "err=" is 0 within 10 seconds | ||
charlie: count of log lines matching "Error" is 0 within 10 seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Test Zombienet | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test-zombienet: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
env: | ||
POLKADOT_VERSION: stable2407 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- if: contains(matrix.os, 'ubuntu') | ||
uses: ./.github/actions/free-disk-space | ||
- if: contains(matrix.os, 'ubuntu') | ||
uses: ./.github/actions/ubuntu-dependencies | ||
- if: contains(matrix.os, 'macos') | ||
uses: ./.github/actions/macos-dependencies | ||
|
||
- name: Build the node individually in release mode | ||
run: cargo build --package parachain-template-node --release | ||
timeout-minutes: 90 | ||
|
||
- name: Download relaychain binaries | ||
run: | | ||
wget --no-verbose https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-${{ env.POLKADOT_VERSION }}/polkadot | ||
wget --no-verbose https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-${{ env.POLKADOT_VERSION }}/polkadot-prepare-worker | ||
wget --no-verbose https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-${{ env.POLKADOT_VERSION }}/polkadot-execute-worker | ||
chmod +x ./polkadot* | ||
working-directory: ./target/release | ||
|
||
- name: Run zombienet tests | ||
run: | | ||
export PATH="./target/release:$PATH" | ||
npx --yes @zombienet/cli --provider native test .github/tests/zombienet-smoke-test.zndsl | ||
shell: bash | ||
timeout-minutes: 10 |