mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-19 07:17:38 +00:00
fix maven buiild workflows (#12720)
* fix maven buiild workflows * fix maven buiild workflows
This commit is contained in:
parent
94fbbe5d98
commit
c1df6e57ce
15
.github/workflows/maven-build.yml
vendored
15
.github/workflows/maven-build.yml
vendored
@ -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: |
|
||||
|
@ -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:
|
Loading…
x
Reference in New Issue
Block a user