File tree Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 11
11
preserveIntermediateArtifacts :
12
12
description : ' preserve intermediate artifacts?'
13
13
default : 0
14
+ skipIntegrationTests :
15
+ description : ' skip integration tests?'
16
+ default : 0
14
17
downloadPublicVersion :
15
18
description : ' public version # to test against'
16
19
downloadPreviousRun :
17
20
description : ' previous run # to test against'
18
- runIntegrationTests :
19
- description : ' run integration tests?'
20
- default : 0
21
21
22
22
env :
23
23
# Packaging prerequisites
49
49
fi
50
50
fi
51
51
52
+ - name : log if skipping integration tests
53
+ if : |
54
+ github.event.inputs.skipIntegrationTests != 0 && github.event.inputs.skipIntegrationTests != ''
55
+ run : echo "::warning ::Skipping integration tests."
56
+
52
57
- name : log if preserving intermediate artifacts
53
58
if : |
54
59
github.event.inputs.preserveIntermediateArtifacts != 0 && github.event.inputs.preserveIntermediateArtifacts != '' &&
@@ -615,7 +620,7 @@ jobs:
615
620
616
621
tests :
617
622
needs : [merge_packages, download_sdk_package]
618
- if : github.event.inputs.runIntegrationTests != 0 && !cancelled()
623
+ if : ( github.event.inputs.skipIntegrationTests == 0 || github.event.inputs.skipIntegrationTests == '') && !cancelled()
619
624
runs-on : ${{ matrix.os }}
620
625
strategy :
621
626
matrix :
@@ -693,4 +698,8 @@ jobs:
693
698
- name : Summarize build and test results
694
699
if : ${{ !cancelled() }}
695
700
shell : bash
696
- run : cat testapps/summary.log
701
+ run : |
702
+ cat testapps/summary.log
703
+ if [[ "${{ job.status }}" != "success" ]]; then
704
+ exit 1
705
+ fi
Original file line number Diff line number Diff line change @@ -162,4 +162,8 @@ jobs:
162
162
- name : Summarize build and test results
163
163
if : ${{ !cancelled() }}
164
164
shell : bash
165
- run : cat testapps/summary.log
165
+ run : |
166
+ cat testapps/summary.log
167
+ if [[ "${{ job.status }}" != "success" ]]; then
168
+ exit 1
169
+ fi
You can’t perform that action at this time.
0 commit comments