Skip to content

Commit

Permalink
chore: Fixing retries in unit tests workflow (#3293)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruisebas authored Oct 12, 2023
1 parent 86d7adf commit ec5a64d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/run_xcodebuild_test_platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ jobs:
cloned_source_packages_path: ~/Library/Developer/Xcode/DerivedData/Amplify
derived_data_path: ${{ github.workspace }}/Build
disable_package_resolution: true
test_without_building: true
# Only test without building when this exact SHA was cached or we did not restore the build from main.
test_without_building: ${{ steps.restore-build.outputs.cache-hit || !steps.restore-main-build.outputs.cache-hit }}
other_flags: ${{ inputs.other_flags }}
- name: Save the SHA build cache for re-runs
if: failure() && steps.retry-tests.outcome=='failure'
Expand Down Expand Up @@ -201,7 +202,8 @@ jobs:
cloned_source_packages_path: ~/Library/Developer/Xcode/DerivedData/Amplify
derived_data_path: ${{ github.workspace }}/Build
disable_package_resolution: true
test_without_building: true
# Only test without building when this exact SHA was cached or we did not restore the build from main.
test_without_building: ${{ steps.restore-build.outputs.cache-hit || !steps.restore-main-build.outputs.cache-hit }}
other_flags: ${{ inputs.other_flags }}
- name: Save the SHA build cache for re-runs
if: failure() && steps.retry-tests.outcome=='failure'
Expand Down Expand Up @@ -295,7 +297,8 @@ jobs:
cloned_source_packages_path: ~/Library/Developer/Xcode/DerivedData/Amplify
derived_data_path: ${{ github.workspace }}/Build
disable_package_resolution: true
test_without_building: true
# Only test without building when this exact SHA was cached or we did not restore the build from main.
test_without_building: ${{ steps.restore-build.outputs.cache-hit || !steps.restore-main-build.outputs.cache-hit }}
other_flags: ${{ inputs.other_flags }}
- name: Save the SHA build cache for re-runs
if: failure() && steps.retry-tests.outcome=='failure'
Expand Down Expand Up @@ -389,7 +392,8 @@ jobs:
cloned_source_packages_path: ~/Library/Developer/Xcode/DerivedData/Amplify
derived_data_path: ${{ github.workspace }}/Build
disable_package_resolution: true
test_without_building: true
# Only test without building when this exact SHA was cached or we did not restore the build from main.
test_without_building: ${{ steps.restore-build.outputs.cache-hit || !steps.restore-main-build.outputs.cache-hit }}
other_flags: ${{ inputs.other_flags }}
- name: Save the SHA build cache for re-runs
if: failure() && steps.retry-tests.outcome=='failure'
Expand Down

0 comments on commit ec5a64d

Please sign in to comment.