Add coveralls (#21)
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
This commit is contained in:
parent
2b33ec5f25
commit
8882d80232
2 changed files with 18 additions and 9 deletions
21
.github/workflows/build.yaml
vendored
21
.github/workflows/build.yaml
vendored
|
@ -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:
|
||||
|
|
|
@ -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]
|
||||
|
||||
<!-- PROJECT LOGO -->
|
||||
<br />
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue