-
Notifications
You must be signed in to change notification settings - Fork 267
54 lines (44 loc) · 1.37 KB
/
build_and_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build and Test
on:
push:
branches:
- chalito/test
jobs:
mining-tests:
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