Skip to content

Commit

Permalink
Codecov Integration [#2]
Browse files Browse the repository at this point in the history
`Codecov` Integration
  • Loading branch information
ns-vasilev authored Sep 13, 2023
2 parents 8402875 + 1dfbc66 commit 3b66b85
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,26 @@ jobs:
- destination: "OS=16.1,name=iPhone 14 Pro"
name: "iOS"
scheme: "Flare"
sdk: iphonesimulator
- destination: "OS=16.1,name=Apple TV"
name: "tvOS"
scheme: "Flare"
sdk: appletvsimulator
- destination: "OS=9.1,name=Apple Watch Series 8 (45mm)"
name: "watchOS"
scheme: "Flare"
sdk: watchsimulator
- destination: "platform=macOS"
name: "macOS"
scheme: "Flare"
sdk: macosx
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.name }}
run: xcodebuild test -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" clean -enableCodeCoverage YES
run: xcodebuild test -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" clean -enableCodeCoverage YES -resultBundlePath "./${{ matrix.sdk }}.xcresult" | xcpretty -r junit
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v3.1.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}
xcode: true
xcode_archive_path: "./${{ matrix.env.sdk }}.xcresult"

0 comments on commit 3b66b85

Please sign in to comment.