feat(tx-utils): add new tx-utils
library
#1841
Workflow file for this run
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
name: E2E Zombienet CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: .turbo | |
key: ${{ runner.os }}-20.x-turbo-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-20.x-turbo- | |
- uses: pnpm/action-setup@v3 | |
- name: Setup Node.js 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: Install deps | |
run: pnpm install | |
- name: Build core | |
run: pnpm turbo build-core --cache-dir=.turbo | |
- name: Install papi | |
run: pnpm install | |
- name: Build external | |
run: pnpm build-external | |
- name: Download Polkadot and parachain binaries | |
run: | | |
wget --no-verbose https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-stable2407-2/polkadot | |
wget --no-verbose https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-stable2407-2/polkadot-parachain | |
wget --no-verbose https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-stable2407-2/polkadot-prepare-worker | |
wget --no-verbose https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-stable2407-2/polkadot-execute-worker | |
chmod +x ./polkadot* | |
working-directory: integration-tests/zombie-tests | |
- name: Run a local relaychain using zombienet | |
run: | | |
export PATH=$(pwd):$PATH | |
npx --yes @zombienet/[email protected] \ | |
--provider native \ | |
--dir zombienet_logs \ | |
spawn zombienet.native.toml \ | |
> polkadot.txt 2>&1 & | |
source wait_until.sh 'curl -s "127.0.0.1:9933"' | |
source wait_until.sh 'curl -s "127.0.0.1:9934"' | |
working-directory: integration-tests/zombie-tests | |
- name: Run test | |
run: pnpm e2e | |
working-directory: integration-tests/zombie-tests | |
- name: Store logs | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: zombie-logs | |
path: integration-tests/zombie-tests/zombienet_logs |