Skip to content

Commit 68c1a7d

Browse files
NUTCH-3094 Github tests to run if build configuration changes
1 parent 6bff123 commit 68c1a7d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/master-build.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,18 @@ jobs:
8282
- 'src/testresources/**'
8383
plugins:
8484
- 'src/plugin/**'
85+
buildconf:
86+
- 'build.xml'
87+
- 'ivy/ivy.xml'
88+
# run if the build configuration or both 'core' and 'plugins' files were changed
89+
- name: test all
90+
if: ${{ steps.filter.outputs.buildconf == 'true' || ( steps.filter.outputs.core == 'true' && steps.filter.outputs.plugin == 'true' ) }}
91+
run: ant clean test -buildfile build.xml
8592
# run only if 'core' files were changed
8693
- name: test core
87-
if: steps.filter.outputs.core == 'true'
94+
if: ${{ steps.filter.outputs.core == 'true' && steps.filter.outputs.plugins == 'false' && steps.filter.outputs.buildconf == 'false' }}
8895
run: ant clean test-core -buildfile build.xml
8996
# run only if 'plugins' files were changed
9097
- name: test plugins
91-
if: steps.filter.outputs.plugins == 'true'
98+
if: ${{ steps.filter.outputs.plugins == 'true' && steps.filter.outputs.core == 'false' && steps.filter.outputs.buildconf == 'false' }}
9299
run: ant clean test-plugins -buildfile build.xml

0 commit comments

Comments
 (0)