Skip to content

Commit

Permalink
Test on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rzadp committed Aug 13, 2024
1 parent c12e6b9 commit 60c05a6
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/tests/zombienet-smoke-test.zndsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Description: Simple Network Smoke Test
Network: ../../zombienet.toml
Creds: config

alice: is up
bob: is up
charlie: is up
alice: parachain 1000 is registered within 225 seconds
alice: parachain 1000 block height is at least 10 within 200 seconds
50 changes: 50 additions & 0 deletions .github/workflows/test-zombienet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Test Zombienet setup

on:
pull_request:
push:
branches:
- main
- master
- rzadp/ci-test-zombienet

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: v1.15.0
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

0 comments on commit 60c05a6

Please sign in to comment.