test3 #96
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
name: Build and Test | ||
on: | ||
push: | ||
branches: | ||
- chalito/test | ||
jobs: | ||
mining-tests: | ||
Check failure on line 9 in .github/workflows/build_and_test.yml GitHub Actions / Build and TestInvalid workflow file
|
||
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 | ||