File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,19 @@ jobs:
45
45
uses : tj-actions/changed-files@v39
46
46
id : changes
47
47
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.
48
53
files_yaml : |
49
54
gradlecheck:
50
- - '**/*'
51
- - '! **/*.md '
52
- - '!.github /*'
55
+ - '**/*.java '
56
+ - '**/*.gradle '
57
+ - 'airbyte-cdk/java/** /*'
53
58
54
59
- uses : actions/setup-java@v3
60
+ if : steps.changes.outputs.gradlecheck_any_changed == 'true'
55
61
with :
56
62
distribution : " zulu"
57
63
java-version : " 21"
62
68
if : steps.changes.outputs.gradlecheck_any_changed == 'true'
63
69
run : python3 -m pip install virtualenv --user
64
70
- name : Docker login
71
+ if : steps.changes.outputs.gradlecheck_any_changed == 'true'
65
72
# Some tests use testcontainers which pull images from DockerHub.
66
73
uses : docker/login-action@v1
67
74
with :
You can’t perform that action at this time.
0 commit comments