remove eslint ignores #87
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 | |
jobs: | |
e2e: | |
timeout-minutes: 15 | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup Node.js for use with actions | |
uses: actions/[email protected] | |
with: | |
node-version: "18.16" | |
- run: yarn install --frozen-lockfile | |
- name: Download Polkadot and parachain binaries | |
run: | | |
wget --no-verbose https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-v1.8.0/polkadot | |
wget --no-verbose https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-v1.8.0/polkadot-parachain | |
wget --no-verbose https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-v1.8.0/polkadot-prepare-worker | |
wget --no-verbose https://github.com/paritytech/polkadot-sdk/releases/download/polkadot-v1.8.0/polkadot-execute-worker | |
chmod +x ./polkadot* | |
working-directory: e2e | |
- name: Run a local relaychain with a parachain 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:9923"' | |
source wait_until.sh 'curl -s "127.0.0.1:9934"' | |
source wait_until.sh 'curl -s "127.0.0.1:9988"' | |
working-directory: e2e | |
- name: Build e2e types | |
run: yarn generate:papi:e2e | |
- name: Build faucet | |
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 |