diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index f0381d5..e1d6d62 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -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 diff --git a/.gitignore b/.gitignore index fec690b..5553661 100644 --- a/.gitignore +++ b/.gitignore @@ -116,4 +116,7 @@ tags # Persistent undo [._]*.un~ +# Test +lcov.info + # End of https://www.toptal.com/developers/gitignore/api/vim