We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ada5fc6 commit a995aacCopy full SHA for a995aac
1 file changed
.github/workflows/maven.yml
@@ -1,15 +1,18 @@
1
+
2
name: Java CI with Maven
3
4
on:
5
push:
- branches: [ "master" ]
6
+ branches:
7
+ - "master"
8
9
jobs:
10
build-and-test:
11
runs-on: ubuntu-latest
12
13
steps:
- - uses: actions/checkout@v3
14
+ - name: Checkout code
15
+ uses: actions/checkout@v3
16
17
- name: Set up JDK 17
18
uses: actions/setup-java@v3
@@ -25,10 +28,10 @@ jobs:
25
28
run: mvn test
26
29
27
30
- name: Sonar analysis
- run: |-
31
+ run: |
32
mvn clean verify
33
sonar-scanner \
34
-Dsonar.projectKey=Github-Actions \
35
-Dsonar.projectName='Github-Actions' \
- -Dsonar.host.url=$SONAR_HOST_URL \
- -Dsonar.login=$SONAR_TOKEN # Access token from GitHub secrets
36
+ -Dsonar.host.url=$SONARQUBE_HOST_URL \
37
+ -Dsonar.login=$SONAR_TOKEN
0 commit comments