diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml
index c5a9a02ce5..4706624bd6 100644
--- a/.github/workflows/ci-workflow.yml
+++ b/.github/workflows/ci-workflow.yml
@@ -77,6 +77,7 @@ concurrency:
permissions:
security-events: write
contents: read
+ pull-requests: read
jobs:
static-analysis:
@@ -158,10 +159,18 @@ jobs:
distribution: 'corretto'
java-version: '21'
cache: 'maven'
+ - name: Evaluate Changed Paths
+ uses: dorny/paths-filter@v3
+ id: changes
+ with:
+ filters: |
+ frontend:
+ - 'nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/**'
- name: Maven Compile
env:
MAVEN_OPTS: >-
${{ env.COMPILE_MAVEN_OPTS }}
+ -Dfrontend.skipTests=${{ !steps.changes.outputs.frontend }}
run: >
${{ env.MAVEN_COMMAND }}
${{ env.MAVEN_COMPILE_COMMAND }}
@@ -169,6 +178,7 @@ jobs:
env:
MAVEN_OPTS: >-
${{ env.DEFAULT_MAVEN_OPTS }}
+ -Dfrontend.skipTests=${{ !steps.changes.outputs.frontend }}
run: >
${{ env.MAVEN_COMMAND }}
jacoco:prepare-agent
@@ -220,10 +230,18 @@ jobs:
distribution: 'zulu'
java-version: '21'
cache: 'maven'
+ - name: Evaluate Changed Paths
+ uses: dorny/paths-filter@v3
+ id: changes
+ with:
+ filters: |
+ frontend:
+ - 'nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/**'
- name: Maven Compile
env:
MAVEN_OPTS: >-
${{ env.COMPILE_MAVEN_OPTS }}
+ -Dfrontend.skipTests=${{ !steps.changes.outputs.frontend }}
run: >
${{ env.MAVEN_COMMAND }}
${{ env.MAVEN_COMPILE_COMMAND }}
@@ -287,10 +305,18 @@ jobs:
distribution: 'zulu'
java-version: '21'
cache: 'maven'
+ - name: Evaluate Changed Paths
+ uses: dorny/paths-filter@v3
+ id: changes
+ with:
+ filters: |
+ frontend:
+ - 'nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/**'
- name: Maven Compile
env:
MAVEN_OPTS: >-
${{ env.COMPILE_MAVEN_OPTS }}
+ -Dfrontend.skipTests=${{ !steps.changes.outputs.frontend }}
run: >
${{ env.MAVEN_COMMAND_WINDOWS }}
${{ env.MAVEN_COMPILE_COMMAND }}
diff --git a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/pom.xml b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/pom.xml
index 324e2e023c..48fd1813d9 100644
--- a/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/pom.xml
+++ b/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-frontend/pom.xml
@@ -36,6 +36,7 @@
Ex: 'purple' // will overwrite the 'material' theme file with the 'purple' theme.
-->
material
+ true
@@ -160,6 +161,7 @@
nx lint
${frontend.working.dir}
+ ${frontend.skipTests}
@@ -175,6 +177,7 @@
nx test --maxWorkers=2
${frontend.working.dir}
+ ${frontend.skipTests}