File tree Expand file tree Collapse file tree 4 files changed +41
-31
lines changed Expand file tree Collapse file tree 4 files changed +41
-31
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+ types : [opened, synchronize, reopened]
8
+ jobs :
9
+ build :
10
+ name : Build
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ with :
15
+ fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
16
+ - name : Set up JDK 8
17
+ uses : actions/setup-java@v1
18
+ with :
19
+ java-version : 8
20
+ - name : Cache SonarCloud packages
21
+ uses : actions/cache@v1
22
+ with :
23
+ path : ~/.sonar/cache
24
+ key : ${{ runner.os }}-sonar
25
+ restore-keys : ${{ runner.os }}-sonar
26
+ - name : Cache Maven packages
27
+ uses : actions/cache@v1
28
+ with :
29
+ path : ~/.m2
30
+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
31
+ restore-keys : ${{ runner.os }}-m2
32
+ - name : Build and analyze
33
+ env :
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
35
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
36
+ run : mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=zzh1991_React-SpringBoot
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 27
27
<spring-cloud-commons .version>3.0.3</spring-cloud-commons .version>
28
28
<!-- plugin version -->
29
29
<maven-lombok .version>1.18.20.0</maven-lombok .version>
30
+
31
+ <!-- sonar -->
32
+ <sonar .organization>zzh1991-github</sonar .organization>
33
+ <sonar .host.url>https://sonarcloud.io</sonar .host.url>
30
34
</properties >
31
35
32
36
<dependencies >
Original file line number Diff line number Diff line change 3
3
driver-class-name : org.postgresql.Driver
4
4
url : jdbc:postgresql://localhost:5432/mydb
5
5
password : postgres
6
- username : dbuser
6
+ username : postgres
7
7
initialization-mode : never
8
8
9
9
flyway :
You can’t perform that action at this time.
0 commit comments