Skip to content

Commit

Permalink
using mining tests fork
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajpiar committed May 9, 2024
1 parent b24c414 commit 531bb0d
Showing 1 changed file with 41 additions and 9 deletions.
50 changes: 41 additions & 9 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ jobs:
mining-tests:
# needs: build
runs-on: ubuntu-latest
# container:
# image: openjdk:8-jdk
container:
image: openjdk:8-jdk
defaults:
run:
working-directory: .
Expand All @@ -169,20 +169,20 @@ jobs:

- name: Setup System Tools
run: |
sudo apt-get update -y
sudo apt-get install -y jq lsof
apt-get update -y
apt-get install -y jq lsof
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '12'
node-version: '21'
- name: Check Node.js version
run: node --version

- name: Checkout Mining Integration Tests Repository
uses: actions/checkout@v2
with:
repository: rsksmart/mining-integration-tests
repository: jurajpiar/mining-integration-tests
# ref: ${{ secrets.MINING_INTEGRATION_TESTS_REF }}
# token: ${{ secrets.GITHUB_TOKEN }}
path: mining-integration-tests
Expand All @@ -196,13 +196,45 @@ jobs:
- name: Wait for Bitcoin nodes to initialize
run: sleep 30

- name: Test bitcoin nodes
- name: Check bitcoin nodes
uses: docker://docker
with:
args: |
docker ps
- name: Check bitcoind1 logs
uses: docker://docker
with:
args: |
docker logs bitcoind1
- name: Check bitcoind1 logs
uses: docker://docker
with:
args: |
docker logs bitcoind2
- name: Test bitcoin node 1 as localhost
if: always()
run: |
echo Test bitcoin node 1
curl -v -s -u admin:admin --data-binary '{"jsonrpc":"1.0","id":"curltext","method":"getblockchaininfo","params":[]}' -H 'content-type:text/plain;' http://localhost:32591
- name: Test bitcoin nodes as bitcoind1
if: always()
run: |
echo Test bitcoin node 1
curl -v -s -u admin:admin --data-binary '{"jsonrpc":"1.0","id":"curltext","method":"getblockchaininfo","params":[]}' -H 'content-type:text/plain;' http://bitcoind1:32591
- name: Test bitcoin node 2 as localhost
if: always()
run: |
echo Test bitcoin node 2
curl -v -s -u admin:admin --data-binary '{"jsonrpc":"1.0","id":"curltext","method":"getblockchaininfo","params":[]}' -H 'content-type:text/plain;' http://localhost:32592
- name: Test bitcoin nodes as bitcoind2
if: always()
run: |
echo Test bitcoin node 2
curl -v -s -u admin:admin --data-binary '{"jsonrpc":"1.0","id":"curltext","method":"getblockchaininfo","params":[]}' -H 'content-type:text/plain;' http://bitcoind2:32592
# - uses: actions/cache@v2
# with:
# path: |
Expand Down Expand Up @@ -299,5 +331,5 @@ jobs:
if: always()
with:
args: |
docker stop bitcoind01 bitcoind02
docker rm bitcoind01 bitcoind02
docker stop bitcoind1 bitcoind2
docker rm bitcoind1 bitcoind2

0 comments on commit 531bb0d

Please sign in to comment.