fix maven buiild workflows (#12720)

* fix maven buiild workflows

* fix maven buiild workflows
This commit is contained in:
Sriharsha Chintalapani 2023-08-02 22:30:27 -07:00 committed by GitHub
parent 94fbbe5d98
commit c1df6e57ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 25 deletions

View File

@ -104,30 +104,19 @@ jobs:
sudo apt-get install -y unixodbc-dev python3-venv librdkafka-dev gcc libsasl2-dev build-essential libssl-dev libffi-dev \
librdkafka-dev unixodbc-dev libevent-dev jq
- name: Setup Test Containers Properties
run: |
sudo make install_antlr_cli
echo 'testcontainers.reuse.enable=true' >> $HOME/.testcontainers.properties
- name: Build PR with Maven
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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 -Dsonar.login=${{ secrets.SONAR_TOKEN }} \
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }} \
-Dsonar.pullrequest.branch=${{ github.head_ref }} \
-Dsonar.pullrequest.base=main \
-Dsonar.pullrequest.github.repository=OpenMetadata \
-Dsonar.scm.revision=${{ github.event.pull_request.head.sha }} \
-Dsonar.pullrequest.provider=github clean test
mvn -pl :openmetadata-service clean test
- name: Build with Maven
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name == 'push' }}
run: mvn -Dsonar.login=${{ secrets.SONAR_TOKEN }} clean verify --batch-mode
run: mvn -Dsonar.login=${{ secrets.SONAR_TOKEN }} clean test
- name: Clean Up
run: |

View File

@ -104,24 +104,13 @@ jobs:
sudo apt-get install -y unixodbc-dev python3-venv librdkafka-dev gcc libsasl2-dev build-essential libssl-dev libffi-dev \
librdkafka-dev unixodbc-dev libevent-dev jq
- name: Setup Test Containers Properties
run: |
sudo make install_antlr_cli
echo 'testcontainers.reuse.enable=true' >> $HOME/.testcontainers.properties
- name: Build PR with Maven
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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 -Dsonar.login=${{ secrets.SONAR_TOKEN }} \
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }} \
-Dsonar.pullrequest.branch=${{ github.head_ref }} \
-Dsonar.pullrequest.base=main \
-Dsonar.pullrequest.github.repository=OpenMetadata \
-Dsonar.scm.revision=${{ github.event.pull_request.head.sha }} \
-Dsonar.pullrequest.provider=github :openmetadata-service -Dprofile=postgres-tests clean test
mvn -pl :openmetadata-service -Dprofile=postgres-tests clean test
- name: Build with Maven
env: