diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55f7abd30..6851e244a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} \ No newline at end of file + token: ${{ secrets.CODECOV_TOKEN }} + xcode: true + xcode_archive_path: "./${{ matrix.env.sdk }}.xcresult" \ No newline at end of file