Skip to content

Commit

Permalink
.github: tighter filtering for gradle workflow (airbytehq#35492)
Browse files Browse the repository at this point in the history
  • Loading branch information
postamar authored Feb 21, 2024
1 parent cf87e02 commit 3fa43b3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,19 @@ jobs:
uses: tj-actions/changed-files@v39
id: changes
with:
# Include java connectors and java CDK.
# Adding all *.java and *.gradle files gets us most of the way there.
# We're take a bit more strict for the java CDK, to make sure that
# the tests run when they should, for instance when changing the contents
# of a text file used as a resource.
files_yaml: |
gradlecheck:
- '**/*'
- '!**/*.md'
- '!.github/*'
- '**/*.java'
- '**/*.gradle'
- 'airbyte-cdk/java/**/*'
- uses: actions/setup-java@v3
if: steps.changes.outputs.gradlecheck_any_changed == 'true'
with:
distribution: "zulu"
java-version: "21"
Expand All @@ -62,6 +68,7 @@ jobs:
if: steps.changes.outputs.gradlecheck_any_changed == 'true'
run: python3 -m pip install virtualenv --user
- name: Docker login
if: steps.changes.outputs.gradlecheck_any_changed == 'true'
# Some tests use testcontainers which pull images from DockerHub.
uses: docker/login-action@v1
with:
Expand Down

0 comments on commit 3fa43b3

Please sign in to comment.