Skip to content

Commit 0fc4091

Browse files
markpollackchedim
authored andcommitted
fix: only run tests for affected modules, not dependencies
Split the build into two phases: 1. Build dependencies without tests using -am -DskipTests 2. Run tests only for affected modules and their dependents This prevents running tests for upstream dependencies like spring-ai-commons and spring-ai-model when they're not in the affected module list. Signed-off-by: Mark Pollack <mark.pollack@broadcom.com>
1 parent fcc15d9 commit 0fc4091

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/main-push-fast.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ jobs:
138138
exit 0
139139
else
140140
echo "INFO: Running tests for affected modules: $MODS"
141-
./mvnw -B -q -T 1C -Pci-fast-integration-tests -DfailIfNoTests=false -pl "$MODS" -am -amd verify
141+
# Build dependencies without tests, then test only the affected modules
142+
./mvnw -B -q -T 1C -DskipTests -pl "$MODS" -am install
143+
./mvnw -B -q -T 1C -Pci-fast-integration-tests -DfailIfNoTests=false -pl "$MODS" -amd verify
142144
fi
143145
144146
- name: Deploy to Artifactory (affected modules only)

0 commit comments

Comments
 (0)