Update release workflow #61
Workflow file for this run
This file contains hidden or 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
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: ubuntu-latest | |
env: | |
POLKADOT_VERSION: stable2407 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/free-disk-space | |
- uses: ./.github/actions/ubuntu-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" | |
rm -fr /tmp/zn-test || echo "No test directory to remove" | |
npx --yes @zombienet/cli --dir /tmp/zn-test --provider native test .github/tests/zombienet-smoke-test.zndsl # || echo "Tests failed - proceeding to logs uploading" | |
shell: bash | |
timeout-minutes: 60 | |
- name: Upload logs | |
uses: actions/upload-artifact@v4.3.6 | |
with: | |
name: zn-test-logs | |
path: | | |
/tmp/zn-test/logs/alice.log | |
/tmp/zn-test/logs/bob.log | |
/tmp/zn-test/logs/charlie.log |