Skip to content

Commit 9a8558c

Browse files
committed
First verify sonar then deploy without tests
1 parent a29a2c5 commit 9a8558c

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,16 @@ jobs:
5454
restore-keys: |
5555
${{ runner.os }}-maven-
5656
57+
- name: Sonar
58+
run: mvn verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=org.utplsql:utplsql-maven-plugin
59+
env:
60+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
62+
5763
- name: Maven deploy snapshot
58-
run: mvn org.jacoco:jacoco-maven-plugin:prepare-agent deploy
64+
run: mvn deploy -DskipTests
5965
env:
6066
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
6167
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
6268
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
6369

64-
- name: Sonar
65-
run: mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=org.utplsql:utplsql-maven-plugin
66-
env:
67-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)