You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by jm...@apache.org on 2020/06/12 19:44:22 UTC
[incubator-datasketches-cpp] branch code_coverage updated: attempt
to add code coverage workflow
This is an automated email from the ASF dual-hosted git repository.
jmalkin pushed a commit to branch code_coverage
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-cpp.git
The following commit(s) were added to refs/heads/code_coverage by this push:
new 2caacee attempt to add code coverage workflow
2caacee is described below
commit 2caacee74d7844a44fc12a598b61223dcebe8a26
Author: Jon Malkin <jm...@users.noreply.github.com>
AuthorDate: Fri Jun 12 12:44:10 2020 -0700
attempt to add code coverage workflow
---
.github/workflows/code_coverage.yml | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/.github/workflows/code_coverage.yml b/.github/workflows/code_coverage.yml
new file mode 100644
index 0000000..4e6ca60
--- /dev/null
+++ b/.github/workflows/code_coverage.yml
@@ -0,0 +1,30 @@
+name: Code Coverage
+
+on: [pull_request]
+
+env:
+ BUILD_TYPE: Debug
+
+jobs:
+ build:
+ name: Coveralls
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ with:
+ submodules: true
+ - name: Configure
+ run: mkdir build && cd build && cmake .. -DCOVERAGE=ON
+ - name: Build unit tests
+ run: cmake --build build
+ - name: Run tests
+ run: cmake --build build --target test
+ - name: Generate coverage .info
+ run: cmake --build build --target coverage_report
+ - name: Coveralls
+ uses: coverallsapp/github-action@master
+ with:
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+ path-to-lcov: build/lcov.info
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org