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 bbf8b1b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/xcbeautify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
merge_group: {}

env:
FRAMEWORK_NAME: xcbeautify
SWIFT_VERSION: 5.7

jobs:
Expand All @@ -23,8 +24,13 @@ jobs:
run: swift build --disable-sandbox --configuration release
- name: Test
run: set -o pipefail && swift test --enable-code-coverage 2>&1 | .build/release/xcbeautify
- run: ls -R .build/debug
- 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
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
files: info.lcov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Expand All @@ -38,8 +44,13 @@ jobs:
- uses: actions/checkout@v4
- run: swift build
- run: set -o pipefail && swift test --enable-code-coverage 2>&1 | .build/debug/xcbeautify
- run: ls -R .build/debug
- name: Prepare Code Coverage
run: llvm-cov export -format="lcov" .build/x86_64-unknown-linux-gnu/debug/${{ env.FRAMEWORK_NAME }}PackageTests.xctest -instr-profile .build/debug/codecov/default.profdata > info.lcov
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
files: info.lcov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- run: make package-linux-x86_64

0 comments on commit bbf8b1b

Please sign in to comment.