Skip to content

Commit

Permalink
chore: update workflows (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangela committed Nov 21, 2023
1 parent b56b39c commit 0e7ed81
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,10 @@ jobs:
uses: actions/checkout@v3

- name: Install Dependencies
run: |
brew install carthage
- name: Carthage update
run: carthage update --platform iOS --use-xcframeworks
run: sudo gem install cocoapods

- name: Carthage build
run: carthage build --no-skip-current --use-xcframeworks
- name: CocoaPods spec lint
run: pod lib lint Google-Maps-iOS-Utils.podspec

- name: Build DevApp
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
with:
token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}

- name: Use Xcode 13.2.1
run: sudo xcode-select -s /Applications/Xcode_13.2.1.app/Contents/Developer
- name: Use Xcode 14.2
run: sudo xcode-select -s /Applications/Xcode_14.2.app/Contents/Developer

- name: Install Dependencies
run: |
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,14 @@ jobs:
uses: actions/checkout@v3

- name: Install Dependencies
run: |
brew install carthage
sudo gem install cocoapods
- name: Carthage update
run: carthage update --platform iOS --use-xcframeworks

- name: Carthage build
run: carthage build --no-skip-current --use-xcframeworks
run: sudo gem install cocoapods

- name: CocoaPods spec lint
run: pod lib lint Google-Maps-iOS-Utils.podspec

- name: Run unit tests
run: |
xcodebuild -scheme UnitTest -configuration Debug -destination "platform=iOS Simulator,OS=13.2.1,name=iPhone 8" build test | xcpretty
xcodebuild -scheme UnitTest -configuration Debug -destination "platform=iOS Simulator,OS=15.0,name=iPhone 8" build test | xcpretty
- name: Upload test results to CodeCov
run: bash <(curl -s https://codecov.io/bash)

0 comments on commit 0e7ed81

Please sign in to comment.