From 0aeb4632595fb3b5ca2c2fe1825676f00c289298 Mon Sep 17 00:00:00 2001 From: Yansong Yang Date: Fri, 2 Oct 2020 11:38:23 -0500 Subject: [PATCH] CI update: collect code coverage (#23) * add beta language, update spm installation text * Update swift.yml Co-authored-by: Jiabin Geng Co-authored-by: Steve Benedick --- .github/workflows/swift.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index a6726da..f96f34c 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -21,4 +21,9 @@ jobs: - name: Build run: swift build -v - name: Run tests - run: swift test -v + run: swift test -v --enable-code-coverage + - name: Upload Code Coverage + run: | + xcrun llvm-cov export -format="lcov" .build/debug/AEPRulesEnginePackageTests.xctest/Contents/MacOS/AEPRulesEnginePackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov + bash <(curl -s https://codecov.io/bash) +