diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2d262b7..4921b4e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -103,6 +103,20 @@ jobs: restore-keys: | ${{ runner.os }}-go- + - name: Run tests + shell: bash + run: | + make test + - name: Convert coverage.out to coverage.lcov + uses: jandelgado/gcov2lcov-action@v1.0.7 + if: matrix.os == 'ubuntu-latest' + - name: Coveralls + uses: coverallsapp/github-action@v1.1.2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: coverage.lcov + if: matrix.os == 'ubuntu-latest' + - name: Build shell: bash run: | @@ -112,12 +126,7 @@ jobs: run: | make cross-compile if: matrix.os == 'ubuntu-latest' - - - name: Run tests - shell: bash - run: | - make test - + - name: Upload artifacts uses: actions/upload-artifact@v2 with: diff --git a/README.md b/README.md index 241b0b4..69fd900 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Stargazers][stars-shield]][stars-url] [![Issues][issues-shield]][issues-url] [![GPL3 License][license-shield]][license-url] -[![Codecov][codecov-shield]][codecov-url] +[![Coveralls][coveralls-shield]][coveralls-url]
@@ -153,5 +153,5 @@ Distributed under the GPL3 license. See `LICENSE` for more information. [license-url]: https://github.com/distribyted/distribyted/blob/master/LICENSE [product-screenshot]: docs/images/distribyted_demo.gif [example-config]: https://github.com/distribyted/distribyted/blob/master/examples/conf_example.yaml -[codecov-shield]: https://img.shields.io/codecov/c/github/distribyted/distribyted?style=flat-square -[codecov-url]: https://codecov.io/gh/distribyted/distribyted +[coveralls-shield]: https://img.shields.io/coveralls/github/distribyted/distribyted?style=flat-square +[coveralls-url]: https://coveralls.io/github/distribyted/distribyted