diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 8c3239816fb..aa5a7fb6dc0 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -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: . @@ -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 @@ -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: | @@ -299,5 +331,5 @@ jobs: if: always() with: args: | - docker stop bitcoind01 bitcoind02 - docker rm bitcoind01 bitcoind02 \ No newline at end of file + docker stop bitcoind1 bitcoind2 + docker rm bitcoind1 bitcoind2 \ No newline at end of file