Skip to content

Commit 53e58ad

Browse files
authored
Run packaging integration tests by default (#231)
* Run integration tests on packaged SDK by default. (Check for blank value because when running on merge, all input params are blank.) * Log if skip integration tests is enabled. * Reorder logs. * Make logical test consistent. * Make conditional single line.
1 parent 2113051 commit 53e58ad

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/cpp-packaging.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ on:
1111
preserveIntermediateArtifacts:
1212
description: 'preserve intermediate artifacts?'
1313
default: 0
14+
skipIntegrationTests:
15+
description: 'skip integration tests?'
16+
default: 0
1417
downloadPublicVersion:
1518
description: 'public version # to test against'
1619
downloadPreviousRun:
1720
description: 'previous run # to test against'
18-
runIntegrationTests:
19-
description: 'run integration tests?'
20-
default: 0
2121

2222
env:
2323
# Packaging prerequisites
@@ -49,6 +49,10 @@ jobs:
4949
fi
5050
fi
5151
52+
- name: log if skipping integration tests
53+
if: !(github.event.inputs.skipIntegrationTests == 0 || github.event.inputs.skipIntegrationTests == '')
54+
run: echo "::warning ::Skipping integration tests."
55+
5256
- name: log if preserving intermediate artifacts
5357
if: |
5458
github.event.inputs.preserveIntermediateArtifacts != 0 && github.event.inputs.preserveIntermediateArtifacts != '' &&
@@ -615,7 +619,7 @@ jobs:
615619

616620
tests:
617621
needs: [merge_packages, download_sdk_package]
618-
if: github.event.inputs.runIntegrationTests != 0 && !cancelled()
622+
if: (github.event.inputs.skipIntegrationTests == 0 || github.event.inputs.skipIntegrationTests == '') && !cancelled()
619623
runs-on: ${{ matrix.os }}
620624
strategy:
621625
matrix:

0 commit comments

Comments
 (0)