Run e2e workflows #3
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
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) |