From 779740a0cfbc6112f419a7911e078908fac9be9c Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Tue, 27 Feb 2024 14:38:32 -0800 Subject: [PATCH] Run lcov --- .github/workflows/test.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 75518e9..b92be2c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -69,12 +69,11 @@ jobs: - name: Configure pkgconfig run: sudo ./Tools/make-pkgconfig.sh /usr/local/lib/pkgconfig/llvm.pc - - name: Build - run: swift build --build-tests -v -c ${{ matrix.configuration }} -Xswiftc -enable-testing + - name: Test + run: | + swift test --enable-code-coverage -v -c ${{ matrix.configuration }} ${{ matrix.host.test-options }} + xcrun llvm-cov export -format="lcov" -instr-profile $(swift test --show-codecov-path | xargs dirname)/default.profdata .build/${{ matrix.configuration }}/*.build/**/*.o > info.lcov - - name: Test - run: swift test --enable-code-coverage -v -c ${{ matrix.configuration }} ${{ matrix.host.test-options }} - - name: Compute refname shell: bash run: echo "refname=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV