Skip to content

Commit

Permalink
chore: update ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
OhKanghoon committed Jun 20, 2023
1 parent 0662b77 commit e6f7d08
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- master
pull_request:

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
test:
runs-on: macOS-latest
Expand All @@ -18,9 +22,6 @@ jobs:
- sdk: iphonesimulator
destination: platform=iOS Simulator,name=iPhone 13 Pro,OS=latest

- sdk: macosx
destination: arch=x86_64

- sdk: appletvsimulator
destination: platform=tvOS Simulator,name=Apple TV,OS=latest

Expand All @@ -42,15 +43,14 @@ jobs:
-destination "$DESTINATION" \
-configuration Debug \
-enableCodeCoverage YES \
-resultBundlePath "./${{ matrix.env.sdk }}.xcresult" \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c;
env:
SDK: ${{ matrix.env.sdk }}
DESTINATION: ${{ matrix.env.destination }}

- name: Upload Code Coverage
run: |
bash <(curl -s https://codecov.io/bash) \
-X xcodeplist \
-J "$CODECOV_PACKAGE_NAME"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3.1.0
with:
xcode: true
xcode_archive_path: "./${{ matrix.env.sdk }}.xcresult"

0 comments on commit e6f7d08

Please sign in to comment.