Skip to content

Commit

Permalink
Let's use the same arguments on previous-os.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
clarmso committed Dec 19, 2024
1 parent 590c27e commit b6fe4d4
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions .github/workflows/focus-ios-ui-tests-previous-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
env:
browser: focus-ios
xcode_version: 16.2
xcodebuild_scheme: Focus
xcodebuild_target: XCUITest
test_results_directory: /Users/runner/tmp

jobs:
Expand Down Expand Up @@ -54,35 +56,39 @@ jobs:
- name: Build Focus
id: compile
run: |
xcodebuild build-for-testing \
-project Blockzilla.xcodeproj -scheme Focus \
-configuration FocusDebug \
CODE_SIGNING_ALLOWED=NO -destination \
'platform=iOS Simulator,name=${{ matrix.ios_simulator }},OS=${{ matrix.ios_version }}'
xcodebuild \
build-for-testing \
-scheme ${{ env.xcodebuild_scheme }} \
-target ${{ env.xcodebuild_target }} \
-derivedDataPath ~/DerivedData \
-destination 'platform=iOS Simulator,name=${{ matrix.ios_simulator }},OS=${{ matrix.ios_version }}' \
COMPILER_INDEX_STORE_ENABLE=NO CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO ARCH="arm64"
working-directory: ${{ env.browser }}
- name: Run smoke tests
id: run-smoketests
run: |
xcodebuild test-without-building \
-project Blockzilla.xcodeproj -scheme Focus \
-configuration FocusDebug \
CODE_SIGNING_ALLOWED=NO \
xcodebuild \
test-without-building \
-scheme ${{ env.xcodebuild_scheme }} \
-target ${{ env.xcodebuild_target }} \
-derivedDataPath ~/DerivedData \
-destination 'platform=iOS Simulator,name=${{ matrix.ios_simulator }},OS=${{ matrix.ios_version }}' \
-testPlan SmokeTest \
-resultBundlePath ${{ env.test_results_directory }}/results-smoketests \
| tee xcodebuild-smoketests.log | xcpretty -r junit --output ./junit-smoketests.xml && exit ${PIPESTATUS[0]}
-resultBundlePath ${{ env.test_results_directory }}/results \
| tee xcodebuild-smoketests.log | xcpretty _0.3.0_ -r junit --output ./junit-smoketests.xml && exit ${PIPESTATUS[0]}
working-directory: ${{ env.browser }}
continue-on-error: true
- name: Run full functional tests
id: run-fullfunctionaltests
run: |
xcodebuild test-without-building \
-project Blockzilla.xcodeproj -scheme Focus \
-configuration FocusDebug \
CODE_SIGNING_ALLOWED=NO \
xcodebuild \
test-without-building \
-scheme ${{ env.xcodebuild_scheme }} \
-target ${{ env.xcodebuild_target }} \
-derivedDataPath ~/DerivedData \
-destination 'platform=iOS Simulator,name=${{ matrix.ios_simulator }},OS=${{ matrix.ios_version }}' \
-testPlan FullFunctionalTests \
-resultBundlePath ${{ env.test_results_directory }}/results-fullfunctionaltests \
-resultBundlePath ${{ env.test_results_directory }}/results \
| tee xcodebuild-fullfunctionaltests.log | xcpretty _0.3.0_ -r junit --output ./junit-fullfunctionaltests.xml && exit ${PIPESTATUS[0]}
working-directory: ${{ env.browser }}
continue-on-error: true
Expand Down

0 comments on commit b6fe4d4

Please sign in to comment.