Skip to content

Commit

Permalink
Update xcbeautify.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cpisciotta committed Jan 6, 2024
1 parent dac8cae commit 0ee82eb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/xcbeautify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ jobs:
run: swift build --disable-sandbox --configuration release
- name: Test
run: set -o pipefail && swift test --enable-code-coverage 2>&1 | .build/release/xcbeautify
- name: Prepare Code Coverage
run: xcrun llvm-cov export -format="lcov" .build/debug/${{ env.FRAMEWORK_NAME }}PackageTests.xctest/Contents/MacOS/${{ env.FRAMEWORK_NAME}}PackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov
env:
FRAMEWORK_NAME: xcbeautify
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
files: info.lcov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Expand All @@ -37,9 +43,4 @@ jobs:
swift-version: ${{ env.SWIFT_VERSION }}
- uses: actions/checkout@v4
- run: swift build
- run: set -o pipefail && swift test --enable-code-coverage 2>&1 | .build/debug/xcbeautify
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- run: make package-linux-x86_64

0 comments on commit 0ee82eb

Please sign in to comment.