diff --git a/.github/workflows/ci-expanded.yml b/.github/workflows/ci-expanded.yml index 4ef84c68..33c815d1 100644 --- a/.github/workflows/ci-expanded.yml +++ b/.github/workflows/ci-expanded.yml @@ -490,11 +490,16 @@ jobs: - name: Coveralls.io upload if: ${{ matrix.coverage == 'lcov' }} - uses: coverallsapp/github-action@v2.3.6 - with: - format: lcov - files: "libbitcoin-node/coverage.info" - github-token: ${{ secrets.github_token }} + shell: bash + working-directory: 'libbitcoin-node' + env: + COVERALLS_REPO_TOKEN: ${{ secrets.github_token }} + run: | + curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux-x86_64.tar.gz + curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt + grep -F coveralls-linux-x86_64.tar.gz coveralls-checksums.txt | sha256sum -c + tar -xzf coveralls-linux-x86_64.tar.gz + ./coveralls report --format lcov coverage.info - name: Test artifact collection if: failure() @@ -1026,11 +1031,16 @@ jobs: - name: Coveralls.io upload if: ${{ matrix.coverage == 'lcov' }} - uses: coverallsapp/github-action@v2.3.6 - with: - format: lcov - files: "libbitcoin-node/coverage.info" - github-token: ${{ secrets.github_token }} + shell: bash + working-directory: 'libbitcoin-node' + env: + COVERALLS_REPO_TOKEN: ${{ secrets.github_token }} + run: | + curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux-x86_64.tar.gz + curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt + grep -F coveralls-linux-x86_64.tar.gz coveralls-checksums.txt | sha256sum -c + tar -xzf coveralls-linux-x86_64.tar.gz + ./coveralls report --format lcov coverage.info - name: Test artifact collection if: failure() @@ -1485,11 +1495,16 @@ jobs: - name: Coveralls.io upload if: ${{ matrix.coverage == 'lcov' }} - uses: coverallsapp/github-action@v2.3.6 - with: - format: lcov - files: "libbitcoin-node/coverage.info" - github-token: ${{ secrets.github_token }} + shell: bash + working-directory: 'libbitcoin-node' + env: + COVERALLS_REPO_TOKEN: ${{ secrets.github_token }} + run: | + curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux-x86_64.tar.gz + curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt + grep -F coveralls-linux-x86_64.tar.gz coveralls-checksums.txt | sha256sum -c + tar -xzf coveralls-linux-x86_64.tar.gz + ./coveralls report --format lcov coverage.info - name: Test artifact collection if: failure() diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc81e2c6..d19d7573 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -183,11 +183,16 @@ jobs: - name: Coveralls.io upload if: ${{ matrix.coverage == 'lcov' }} - uses: coverallsapp/github-action@v2.3.6 - with: - format: lcov - files: "libbitcoin-node/coverage.info" - github-token: ${{ secrets.github_token }} + shell: bash + working-directory: 'libbitcoin-node' + env: + COVERALLS_REPO_TOKEN: ${{ secrets.github_token }} + run: | + curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux-x86_64.tar.gz + curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt + grep -F coveralls-linux-x86_64.tar.gz coveralls-checksums.txt | sha256sum -c + tar -xzf coveralls-linux-x86_64.tar.gz + ./coveralls report --format lcov coverage.info - name: Test artifact collection if: failure() @@ -412,11 +417,16 @@ jobs: - name: Coveralls.io upload if: ${{ matrix.coverage == 'lcov' }} - uses: coverallsapp/github-action@v2.3.6 - with: - format: lcov - files: "libbitcoin-node/coverage.info" - github-token: ${{ secrets.github_token }} + shell: bash + working-directory: 'libbitcoin-node' + env: + COVERALLS_REPO_TOKEN: ${{ secrets.github_token }} + run: | + curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux-x86_64.tar.gz + curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt + grep -F coveralls-linux-x86_64.tar.gz coveralls-checksums.txt | sha256sum -c + tar -xzf coveralls-linux-x86_64.tar.gz + ./coveralls report --format lcov coverage.info - name: Test artifact collection if: failure() @@ -599,11 +609,16 @@ jobs: - name: Coveralls.io upload if: ${{ matrix.coverage == 'lcov' }} - uses: coverallsapp/github-action@v2.3.6 - with: - format: lcov - files: "libbitcoin-node/coverage.info" - github-token: ${{ secrets.github_token }} + shell: bash + working-directory: 'libbitcoin-node' + env: + COVERALLS_REPO_TOKEN: ${{ secrets.github_token }} + run: | + curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-linux-x86_64.tar.gz + curl -sLO https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-checksums.txt + grep -F coveralls-linux-x86_64.tar.gz coveralls-checksums.txt | sha256sum -c + tar -xzf coveralls-linux-x86_64.tar.gz + ./coveralls report --format lcov coverage.info - name: Test artifact collection if: failure() diff --git a/builds/gnu/test_runner.sh b/builds/gnu/test_runner.sh index b43d755f..8a3b8796 100755 --- a/builds/gnu/test_runner.sh +++ b/builds/gnu/test_runner.sh @@ -12,7 +12,7 @@ BOOST_UNIT_TEST_OPTIONS="--log_level=warning --show_progress=no --detect_memory_ # Run tests. #============================================================================== -if [[ ${CI} == true ]]; then +if [ "${CI}" = true ]; then ./test/libbitcoin-node-test ${BOOST_UNIT_TEST_OPTIONS} else ./test/libbitcoin-node-test ${BOOST_UNIT_TEST_OPTIONS} > test.log