Skip to content

Commit 2a8240b

Browse files
author
Marius Posta
committed
.github: tighter filtering for gradle workflow
1 parent 5d00e5b commit 2a8240b

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/gradle.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,19 @@ jobs:
4545
uses: tj-actions/changed-files@v39
4646
id: changes
4747
with:
48+
# Include java connectors and java CDK.
49+
# Adding all *.java and *.gradle files gets us most of the way there.
50+
# We're take a bit more strict for the java CDK, to make sure that
51+
# the tests run when they should, for instance when changing the contents
52+
# of a text file used as a resource.
4853
files_yaml: |
4954
gradlecheck:
50-
- '**/*'
51-
- '!**/*.md'
52-
- '!.github/*'
55+
- '**/*.java'
56+
- '**/*.gradle'
57+
- 'airbyte-cdk/java/**/*'
5358
5459
- uses: actions/setup-java@v3
60+
if: steps.changes.outputs.gradlecheck_any_changed == 'true'
5561
with:
5662
distribution: "zulu"
5763
java-version: "21"
@@ -62,6 +68,7 @@ jobs:
6268
if: steps.changes.outputs.gradlecheck_any_changed == 'true'
6369
run: python3 -m pip install virtualenv --user
6470
- name: Docker login
71+
if: steps.changes.outputs.gradlecheck_any_changed == 'true'
6572
# Some tests use testcontainers which pull images from DockerHub.
6673
uses: docker/login-action@v1
6774
with:

0 commit comments

Comments
 (0)