Skip to content

Commit a995aac

Browse files
authored
Update maven.yml
1 parent ada5fc6 commit a995aac

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/maven.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1+
12
name: Java CI with Maven
23

34
on:
45
push:
5-
branches: [ "master" ]
6+
branches:
7+
- "master"
68

79
jobs:
810
build-and-test:
911
runs-on: ubuntu-latest
1012

1113
steps:
12-
- uses: actions/checkout@v3
14+
- name: Checkout code
15+
uses: actions/checkout@v3
1316

1417
- name: Set up JDK 17
1518
uses: actions/setup-java@v3
@@ -25,10 +28,10 @@ jobs:
2528
run: mvn test
2629

2730
- name: Sonar analysis
28-
run: |-
31+
run: |
2932
mvn clean verify
3033
sonar-scanner \
3134
-Dsonar.projectKey=Github-Actions \
3235
-Dsonar.projectName='Github-Actions' \
33-
-Dsonar.host.url=$SONAR_HOST_URL \
34-
-Dsonar.login=$SONAR_TOKEN # Access token from GitHub secrets
36+
-Dsonar.host.url=$SONARQUBE_HOST_URL \
37+
-Dsonar.login=$SONAR_TOKEN

0 commit comments

Comments
 (0)