mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-13 13:30:40 +00:00
Add Coveralls integration
Build and upload lcov-compatible coverage file to coveralls
This commit is contained in:
parent
0ded24c2d5
commit
7f3c033162
2 changed files with 6 additions and 0 deletions
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
@ -69,6 +69,11 @@ jobs:
|
|||
- name: make coverage
|
||||
run: |
|
||||
CXX=clang++-10 make -j2 config=coverage coverage
|
||||
- name: upload coverage
|
||||
uses: coverallsapp/github-action@master
|
||||
with:
|
||||
path-to-lcov: ./coverage.info
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: coverage
|
||||
|
|
1
Makefile
1
Makefile
|
@ -107,6 +107,7 @@ coverage: $(TESTS_TARGET)
|
|||
rm default.profraw default-flags.profraw
|
||||
llvm-cov show -format=html -show-instantiations=false -show-line-counts=true -show-region-summary=false -ignore-filename-regex=\(tests\|extern\)/.* -output-dir=coverage --instr-profile default.profdata build/coverage/luau-tests
|
||||
llvm-cov report -ignore-filename-regex=\(tests\|extern\)/.* -show-region-summary=false --instr-profile default.profdata build/coverage/luau-tests
|
||||
llvm-cov export -ignore-filename-regex=\(tests\|extern\)/.* -format lcov --instr-profile default.profdata build/coverage/luau-tests >coverage.info
|
||||
|
||||
format:
|
||||
find . -name '*.h' -or -name '*.cpp' | xargs clang-format -i
|
||||
|
|
Loading…
Reference in a new issue