fix(ci): refactor build-and-test command (#9999)

This commit is contained in:
Harshal Sheth 2024-03-06 11:43:05 -08:00 committed by GitHub
parent 1b3bbf8234
commit 7de517c363
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 1 deletions

View File

@ -76,7 +76,17 @@ jobs:
- name: Gradle build (and test) for NOT metadata ingestion
if: ${{ matrix.command == 'except_metadata_ingestion' && needs.setup.outputs.backend_change == 'true' }}
run: |
./gradlew build -x :metadata-ingestion:build -x :metadata-ingestion:check -x docs-website:build -x :metadata-integration:java:spark-lineage:test -x :metadata-io:test -x :metadata-ingestion-modules:airflow-plugin:build -x :metadata-ingestion-modules:airflow-plugin:check -x :datahub-frontend:build -x :datahub-web-react:build --parallel
./gradlew build \
-x :metadata-ingestion:build \
-x :metadata-ingestion:check \
-x docs-website:build \
-x :metadata-integration:java:spark-lineage:test \
-x :metadata-io:test \
-x :metadata-ingestion-modules:airflow-plugin:build \
-x :metadata-ingestion-modules:airflow-plugin:check \
-x :datahub-frontend:build \
-x :datahub-web-react:build \
--parallel
- name: Gradle build (and test) for frontend
if: ${{ matrix.command == 'frontend' && needs.setup.outputs.frontend_change == 'true' }}
run: |

View File

@ -6,6 +6,7 @@ on:
paths:
- ".github/workflows/metadata-ingestion.yml"
- "metadata-ingestion/**"
- "metadata-ingestion-modules/**"
- "metadata-models/**"
pull_request:
branches:
@ -13,6 +14,7 @@ on:
paths:
- ".github/workflows/metadata-ingestion.yml"
- "metadata-ingestion/**"
- "metadata-ingestion-modules/**"
- "metadata-models/**"
release:
types: [published]