File tree Expand file tree Collapse file tree 5 files changed +17
-7
lines changed
AmplifyPlugins/API/Tests/APIHostApp/APIHostApp.xcodeproj Expand file tree Collapse file tree 5 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 1
- name : Integration Tests
1
+ name : Integration Tests (Except DataStore & API)
2
2
on :
3
3
workflow_dispatch :
4
4
push :
Original file line number Diff line number Diff line change 37
37
scheme : ${{ matrix.scheme }}
38
38
timeout-minutes : 50
39
39
generate_coverage_report : false
40
- retry_on_error : false
41
- other_flags : -test-iterations 100 -run-tests-until-failure
40
+ test_iterations_flags : -test-iterations 100 -run-tests-until-failure
Original file line number Diff line number Diff line change 27
27
required : false
28
28
type : boolean
29
29
default : false
30
+ test_iterations_flags :
31
+ description : ' The xcodebuild flags used when running the test. Defaults to retrying on failure up to 3 times'
32
+ required : false
33
+ type : string
34
+ default : ' -test-iterations 3 -retry-tests-on-failure'
30
35
31
36
permissions :
32
37
contents : read
82
87
cloned_source_packages_path : ~/Library/Developer/Xcode/DerivedData/Amplify
83
88
derived_data_path : ${{ github.workspace }}/Build
84
89
disable_package_resolution : ${{ steps.dependencies-cache.outputs.cache-hit }}
85
- other_flags : -test-iterations 3 -retry-tests-on-failure
90
+ other_flags : ${{ inputs.test_iterations_flags }}
86
91
87
92
- name : Retry ${{ inputs.platform }} Unit Tests
88
93
if : steps.run-tests.outcome=='failure'
98
103
cloned_source_packages_path : ~/Library/Developer/Xcode/DerivedData/Amplify
99
104
derived_data_path : ${{ github.workspace }}/Build
100
105
disable_package_resolution : true
101
- other_flags : -test-iterations 3 -retry-tests-on-failure
106
+ other_flags : ${{ inputs.test_iterations_flags }}
102
107
103
108
- name : Store Coverage Report File
104
109
if : ${{ inputs.generate_coverage_report == true }}
Original file line number Diff line number Diff line change 16
16
required : false
17
17
type : boolean
18
18
default : false
19
+ test_iterations_flags :
20
+ description : ' The xcodebuild flags used when running the test. Defaults to retrying on failure up to 3 times'
21
+ required : false
22
+ type : string
23
+ default : ' -test-iterations 3 -retry-tests-on-failure'
19
24
20
25
permissions :
21
26
contents : read
37
42
scheme : ${{ inputs.scheme }}
38
43
platform : ${{ matrix.platform }}
39
44
generate_coverage_report : ${{ github.event_name != 'workflow_dispatch' && matrix.platform == 'iOS' && inputs.generate_coverage_report }}
40
- timeout-minutes : ${{ inputs.timeout-minutes }}
45
+ timeout-minutes : ${{ inputs.timeout-minutes }}
46
+ test_iterations_flags : ${{ inputs.test_iterations_flags }}
Original file line number Diff line number Diff line change 3554
3554
isa = XCRemoteSwiftPackageReference;
3555
3555
repositoryURL = "https://github.com/mattgallagher/CwlPreconditionTesting.git";
3556
3556
requirement = {
3557
- kind = upToNextMinorVersion ;
3557
+ kind = upToNextMajorVersion ;
3558
3558
minimumVersion = 2.1.0;
3559
3559
};
3560
3560
};
You can’t perform that action at this time.
0 commit comments