Skip to content

Commit

Permalink
Run lcov
Browse files Browse the repository at this point in the history
  • Loading branch information
dabrahams committed Feb 27, 2024
1 parent 41267dc commit 779740a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 779740a

Please sign in to comment.