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
19
.github/workflows/build.yaml
vendored
19
.github/workflows/build.yaml
vendored
|
@ -103,6 +103,20 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-go-
|
${{ 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
|
- name: Build
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
@ -113,11 +127,6 @@ jobs:
|
||||||
make cross-compile
|
make cross-compile
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
|
||||||
- name: Run tests
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
make test
|
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
[![Stargazers][stars-shield]][stars-url]
|
[![Stargazers][stars-shield]][stars-url]
|
||||||
[![Issues][issues-shield]][issues-url]
|
[![Issues][issues-shield]][issues-url]
|
||||||
[![GPL3 License][license-shield]][license-url]
|
[![GPL3 License][license-shield]][license-url]
|
||||||
[![Codecov][codecov-shield]][codecov-url]
|
[![Coveralls][coveralls-shield]][coveralls-url]
|
||||||
|
|
||||||
<!-- PROJECT LOGO -->
|
<!-- PROJECT LOGO -->
|
||||||
<br />
|
<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
|
[license-url]: https://github.com/distribyted/distribyted/blob/master/LICENSE
|
||||||
[product-screenshot]: docs/images/distribyted_demo.gif
|
[product-screenshot]: docs/images/distribyted_demo.gif
|
||||||
[example-config]: https://github.com/distribyted/distribyted/blob/master/examples/conf_example.yaml
|
[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
|
[coveralls-shield]: https://img.shields.io/coveralls/github/distribyted/distribyted?style=flat-square
|
||||||
[codecov-url]: https://codecov.io/gh/distribyted/distribyted
|
[coveralls-url]: https://coveralls.io/github/distribyted/distribyted
|
||||||
|
|
Loading…
Reference in a new issue