diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index b2dcc7153e178..e6066c13ca4fb 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -51,10 +51,15 @@ env: -ff # skip assemblies and modules covered separately by the system-tests workflow +# skip unit tests (surefire), run integration tests (failsafe), python ITs included as part of the system-tests workflow MAVEN_BUILD_ARGUMENTS: >- - -D skipTests -T 2.0C - install + -D failsafe.failIfNoSpecifiedTests=false + package + -P skip-unit-tests + -P integration-tests + -P nifi-registry-integration-tests + package MAVEN_BUILD_EXCLUDE_PROJECTS: >- -pl -:minifi-assembly -pl -:minifi-c2-assembly @@ -70,15 +75,6 @@ env: -pl -:nifi-system-test-suite -pl -:nifi-nar-provider-assembly -pl -:nifi-py4j-integration-tests - -# run integration tests, python ITs included as part of the system-tests workflow - MAVEN_FAILSAFE_RUN_ARGUMENTS: >- - -D failsafe.failIfNoSpecifiedTests=false - test-compile - failsafe:integration-test - failsafe:verify - -P integration-tests - -P nifi-registry-integration-tests # skip individual failing ITs (some won't work in a CI environment) # always run the (failsafe default) IT*, *IT, *ITCase integration-tests MAVEN_FAILSAFE_SKIP_ITS: >- @@ -227,7 +223,7 @@ jobs: - name: Confirm Docker run: id && docker info - - name: Build Modules + - name: Build and Run Tests env: MAVEN_OPTS: >- ${{ env.DEFAULT_MAVEN_OPTS }} @@ -235,14 +231,15 @@ jobs: ${{ env.MAVEN_COMMAND }} ${{ env.MAVEN_BUILD_ARGUMENTS }} ${{ env.MAVEN_BUILD_EXCLUDE_PROJECTS }} - - name: Run Failsafe Tests - env: - MAVEN_OPTS: >- - ${{ env.DEFAULT_MAVEN_OPTS }} - run: > - ${{ env.MAVEN_COMMAND }} - ${{ env.MAVEN_FAILSAFE_RUN_ARGUMENTS }} '-Dit.test=${{ env.MAVEN_FAILSAFE_SKIP_ITS }}' +# - name: Run Failsafe Tests +# env: +# MAVEN_OPTS: >- +# ${{ env.DEFAULT_MAVEN_OPTS }} +# run: > +# ${{ env.MAVEN_COMMAND }} +# ${{ env.MAVEN_FAILSAFE_RUN_ARGUMENTS }} +# '-Dit.test=${{ env.MAVEN_FAILSAFE_SKIP_ITS }}' - name: Upload Troubleshooting Logs if: failure() || cancelled() uses: actions/upload-artifact@v3 diff --git a/pom.xml b/pom.xml index 137d8fd475e07..54f124e2d278b 100644 --- a/pom.xml +++ b/pom.xml @@ -1025,6 +1025,25 @@ + + + skip-unit-tests + + + + org.apache.maven.plugins + maven-surefire-plugin + + true + + + + + contrib-check