Skip to content

Run e2e workflows

Run e2e workflows #3

Workflow file for this run

on: [push, pull_request]
name: E2E tests
jobs:
open-update-close-channel:
strategy:
matrix:
workflow:
- 3-nodes-transfer
- invoice-ops
- open-use-close-a-channel
name: e2e test for ${{ matrix.workflow }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
- uses: dsherret/rust-toolchain-file@v1
- run: |
wget https://github.com/nervosnetwork/ckb/releases/download/v0.116.1/ckb_v0.116.1_x86_64-unknown-linux-gnu-portable.tar.gz
tar -xvaf ckb_*_x86_64-unknown-linux-gnu-portable.tar.gz
sudo mv ckb_*_x86_64-unknown-linux-gnu/* /usr/local/bin/
./tests/nodes/start.sh &
# Wait for the nodes to start
sleep 20
cd ./tests/bruno
npm exec -- @usebruno/cli run e2e/${{ matrix.workflow }} -r --env test
# Kill all the background processes
kill $(jobs -p)