Report the code coverage to Codecov (#14)

This commit is contained in:
원형식 2022-10-06 17:05:48 +09:00 committed by GitHub
parent 12487cc5d5
commit 28524d6dbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -20,4 +20,10 @@ jobs:
- uses: docker-practice/actions-setup-docker@master
- run: docker-compose -f docker/docker-compose-ci.yml up --build -d
- name: Run tests
run: swift test -v
run: swift test --enable-code-coverage -v
- name: Prepare Code Coverage
run: xcrun llvm-cov export -format="lcov" .build/debug/YorkiePackageTests.xctest/Contents/MacOS/YorkiePackageTests -instr-profile .build/debug/codecov/default.profdata > lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: lcov.info

3
.gitignore vendored
View File

@ -116,4 +116,7 @@ tags
# Persistent undo
[._]*.un~
# Test
lcov.info
# End of https://www.toptal.com/developers/gitignore/api/vim