Skip to content

Commit 7cf0b92

Browse files
committed
Fetch depth to avoid Sonar warning and merged two steps
1 parent 45ad8d3 commit 7cf0b92

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
2929
steps:
3030
- uses: actions/checkout@v2
31+
with:
32+
fetch-depth: 0
3133

3234
- name: Install utPLSQL
3335
run: sh ${{ github.workspace }}/scripts/1_install_utplsql.sh
@@ -54,15 +56,11 @@ jobs:
5456
restore-keys: |
5557
${{ runner.os }}-maven-
5658
57-
- name: Sonar
58-
run: mvn verify sonar:sonar -Pcoverage -Dsonar.projectKey=org.utplsql:utplsql-maven-plugin
59+
- name: Maven deploy snapshot and run Sonar
60+
run: mvn deploy sonar:sonar -Pcoverage -Dsonar.projectKey=org.utplsql:utplsql-maven-plugin
5961
env:
6062
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6163
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
62-
63-
- name: Maven deploy snapshot
64-
run: mvn deploy -DskipTests
65-
env:
6664
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
6765
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
6866
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

0 commit comments

Comments
 (0)