From b06db047a485b194c4e567bba322e5f1669f8454 Mon Sep 17 00:00:00 2001 From: Sriharsha Chintalapani Date: Sun, 8 Oct 2023 08:08:14 -0700 Subject: [PATCH] Make tests to run mvn clean package (#13480) --- .github/workflows/maven-build.yml | 4 ++-- .github/workflows/maven-postgres-tests-build.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 10e6d1f37d81..d292a1815d07 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -106,13 +106,13 @@ jobs: if: ${{ github.event_name == 'pull_request_target' }} run: | git fetch --no-tags https://github.com/open-metadata/OpenMetadata.git +refs/heads/main:refs/remotes/origin/main - mvn -pl :openmetadata-service clean test -am + mvn -pl :openmetadata-service clean package -am - name: Build with Maven env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} - run: mvn -Dsonar.login=${{ secrets.SONAR_TOKEN }} clean test + run: mvn -Dsonar.login=${{ secrets.SONAR_TOKEN }} clean package - name: Clean Up run: | diff --git a/.github/workflows/maven-postgres-tests-build.yml b/.github/workflows/maven-postgres-tests-build.yml index 1c2ee39d114a..990644821a8c 100644 --- a/.github/workflows/maven-postgres-tests-build.yml +++ b/.github/workflows/maven-postgres-tests-build.yml @@ -105,13 +105,13 @@ jobs: if: ${{ github.event_name == 'pull_request_target' }} run: | git fetch --no-tags https://github.com/open-metadata/OpenMetadata.git +refs/heads/main:refs/remotes/origin/main - mvn -pl :openmetadata-service -Dprofile=postgres-tests clean test -am + mvn -pl :openmetadata-service -Dprofile=postgres-tests clean package -am - name: Build with Maven env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} if: ${{ github.event_name == 'push' }} - run: mvn clean test + run: mvn clean package - name: Clean Up run: |