Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update github workflow yaml #662

Merged
merged 2 commits into from
Jan 30, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
update ios workflow
  • Loading branch information
jaredmixpanel committed Jan 30, 2025

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit fb63fc0105415ddeb7dfba5f29eae938eb151058
47 changes: 31 additions & 16 deletions .github/workflows/iOS.yml
Original file line number Diff line number Diff line change
@@ -11,21 +11,36 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
destination: ['name="iPhone 14 Pro",OS=latest']
destination: ['name=iPhone 15 Pro,OS=latest']

steps:
- uses: actions/checkout@v2
- name: Run Test
working-directory: MixpanelDemo
run: |
set -o pipefail
xcodebuild -scheme MixpanelDemo -derivedDataPath Build/ -destination ${{ matrix.destination }} -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES -enableCodeCoverage YES clean build test | xcpretty -c;
- name: Pod Lint
run: |
gem install cocoapods
pod lib lint --allow-warnings
- name: Code Coverage Report
working-directory: MixpanelDemo/build/Logs/Test
run: |
xcrun xccov view --report --files-for-target Mixpanel.framework *.xcresult
xcrun xccov view --report --only-targets *.xcresult
- uses: actions/checkout@v2

# (Optional) Inspect what simulators are installed
- name: Show simulators
run: xcrun simctl list

- name: Run Test
working-directory: MixpanelDemo
run: |
set -o pipefail
xcodebuild \
-scheme MixpanelDemo \
-derivedDataPath Build/ \
-destination "${{ matrix.destination }}" \
-configuration Debug \
ONLY_ACTIVE_ARCH=NO \
ENABLE_TESTABILITY=YES \
-enableCodeCoverage YES \
clean build test | xcpretty -c;

- name: Pod Lint
run: |
gem install cocoapods
pod lib lint --allow-warnings

- name: Code Coverage Report
working-directory: MixpanelDemo/build/Logs/Test
run: |
xcrun xccov view --report --files-for-target Mixpanel.framework *.xcresult
xcrun xccov view --report --only-targets *.xcresult