chore: e2e mining test #27
Workflow file for this run
This file contains hidden or 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: Wallet Tests | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install RUST | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - uses: denoland/setup-deno@v2 | |
| - name: Cache | |
| id: cache-zkool | |
| uses: actions/cache@v4 | |
| with: | |
| path: ./rust/target/release/zkool_graphql | |
| key: ${{ runner.os }}-zkool_graphql.1 | |
| - name: Build zkool_graphql | |
| if: steps.cache-zkool.outputs.cache-hit != 'true' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y pkg-config libudev-dev | |
| cd rust | |
| cargo build --release --bin zkool_graphql --features=graphql | |
| - name: Save cache | |
| if: steps.cache-zkool.outputs.cache-hit != 'true' | |
| uses: actions/cache/save@v4 | |
| with: | |
| path: ./rust/target/release/zkool_graphql | |
| key: ${{ runner.os }}-zkool_graphql.1 | |
| - name: Run regtest | |
| uses: ./.github/actions/zebra | |
| with: | |
| miner_address: tmQ1BiNRfsvT6eMkJ5n7nMZsbz1PGwCs1Zs | |
| - name: Shield mine | |
| run: | | |
| curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "generate", "params": [200] }' -H 'Content-type: application/json' http://127.0.0.1:18232/ | |
| nohup ./rust/target/release/zkool_graphql -d regtest.db -l http://localhost:8137 -n & | |
| pushd example/js | |
| deno install | |
| deno task start | |
| env: | |
| MINER_SEED: "burger voice warrior danger satoshi you solid atom elite alcohol category layer able debate culture talk tissue language hip surge fiction paddle stove voyage" | |
| WS_ENDPOINT: "ws://localhost:8000/subscriptions" | |
| DESTINATION_ADDRESS: uregtest1ur83jamvhc5pwe8xzlu9d8ur4mxmny385mhlurxh5z00e6vhcf9zk0dncar334n0ucskdya9ytdrvzucprqjrhy7hd6rkklp0q6eyxp5 |