ci: Migrate from gitlab to github #701
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 | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
e2e: | |
timeout-minutes: 15 | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3.3.0 | |
- name: Setup Node.js for use with actions | |
uses: actions/setup-node@v3.5.1 | |
with: | |
node-version: 22 | |
- run: yarn install --immutable | |
- name: Download Polkadot and parachain binaries | |
run: | | |
wget --no-verbose https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-stable2407-1/polkadot | |
wget --no-verbose https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-stable2407-1/polkadot-parachain | |
wget --no-verbose https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-stable2407-1/polkadot-prepare-worker | |
wget --no-verbose https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-stable2407-1/polkadot-execute-worker | |
chmod +x ./polkadot* | |
working-directory: e2e | |
- name: Run a local relaychain with a parachain using zombienet | |
run: | | |
export PATH=$(pwd):$PATH | |
yarn e2e:zombienet > 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: e2e | |
- name: Compile typescript | |
run: yarn build | |
- name: Build faucet docker image | |
run: yarn build:docker | |
- name: Run the E2E tests | |
run: yarn test:e2e | |
- name: Debug Zombienet host logs | |
if: failure() | |
run: cat e2e/polkadot.txt | |
- name: Debug Zombienet alice node logs | |
if: failure() | |
run: cat e2e/zombienet_logs/alice.log | |
- name: Debug Zombienet bob node logs | |
if: failure() | |
run: cat e2e/zombienet_logs/bob.log | |
- name: Debug Zombienet alice-1 node logs | |
if: failure() | |
run: cat e2e/zombienet_logs/alice-1.log | |
- name: Debug Matrix logs | |
if: failure() | |
run: cat e2e/containter_logs/faucet-test-matrix.log | |
- name: Debug faucet logs | |
if: failure() | |
run: cat e2e/containter_logs/faucet-test-app.log |