Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Commit f7f6f6b

Browse files
fix: version for SonarQub
1 parent 5be80c2 commit f7f6f6b

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- name: Checkout with all branches and tags
17+
uses: actions/checkout@v2
1718
with:
1819
fetch-depth: 0
1920

@@ -22,17 +23,14 @@ jobs:
2223
with:
2324
java-version: '14'
2425

25-
- name: Test version
26-
run: ./gradlew version
27-
28-
# - name: Compile
29-
# run: ./gradlew classes
30-
#
31-
# - name: Test
32-
# run: ./gradlew test
33-
#
34-
# - name: Analyse
35-
# if: github.ref == 'refs/heads/master'
36-
# run: ./gradlew version sonarqube -Dsonar.login=${{ secrets.SONAR_LOGIN }} -Djgitver.branch=${GITHUB_REF:11}
37-
# env:
38-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
- name: Compile
27+
run: ./gradlew classes
28+
29+
- name: Test
30+
run: ./gradlew test
31+
32+
- name: Analyse
33+
if: github.ref == 'refs/heads/master'
34+
run: ./gradlew version sonarqube -Dsonar.login=${{ secrets.SONAR_LOGIN }} -Djgitver.branch=${GITHUB_REF:11}
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)