Skip to content

test3

test3 #96

Workflow file for this run

name: Build and Test
on:
push:
branches:
- chalito/test
jobs:
mining-tests:

Check failure on line 9 in .github/workflows/build_and_test.yml

View workflow run for this annotation

GitHub Actions / Build and Test

Invalid workflow file

The workflow is not valid. .github/workflows/build_and_test.yml (Line: 9, Col: 3): The workflow must contain at least one job with no dependencies.
needs: build
runs-on: ubuntu-latest
defaults:
run:
working-directory: .
services:
bitcoind01:
image: kylemanna/bitcoind:latest
volumes:
- ${{ github.workspace }}/build/.test/bitcoind.conf:/etc/bitcoind/bitcoind.conf
env:
DISABLEWALLET: "0"
ports:
- 31591:31591
options: >-
--entrypoint "/usr/local/bin/bitcoind"
bitcoind02:
image: kylemanna/bitcoind:latest
env:
DISABLEWALLET: "0"
ports:
- 31592:31592
options: >-
--entrypoint "/usr/local/bin/bitcoind"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Restart bitcoind01
uses: docker://docker
with:
args: docker restart bitcoind01
- name: Test bitcoin nodes
run: |
echo Test bitcoin node 1
curl -s -u admin:admin --data-binary '{"jsonrpc":"1.0","id":"curltext","method":"getblockchaininfo","params":[]}' -H 'content-type:text/plain;' http://localhost:32591
echo Test bitcoin node 2
curl -s -u admin:admin --data-binary '{"jsonrpc":"1.0","id":"curltext","method":"getblockchaininfo","params":[]}' -H 'content-type:text/plain;' http://localhost:32592