Commit ca1be94 1 parent 5027935 commit ca1be94 Copy full SHA for ca1be94
File tree 1 file changed +37
-0
lines changed
1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+ on :
3
+ push :
4
+ branches :
5
+ - ea
6
+ - develop
7
+ pull_request :
8
+ types : [opened, synchronize, reopened]
9
+ jobs :
10
+ build :
11
+ name : Build
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ with :
16
+ fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
17
+ - name : Set up JDK 11
18
+ uses : actions/setup-java@v1
19
+ with :
20
+ java-version : 11
21
+ - name : Cache SonarCloud packages
22
+ uses : actions/cache@v1
23
+ with :
24
+ path : ~/.sonar/cache
25
+ key : ${{ runner.os }}-sonar
26
+ restore-keys : ${{ runner.os }}-sonar
27
+ - name : Cache Maven packages
28
+ uses : actions/cache@v1
29
+ with :
30
+ path : ~/.m2
31
+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
32
+ restore-keys : ${{ runner.os }}-m2
33
+ - name : Build and analyze
34
+ env :
35
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
36
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
37
+ run : mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=OpenHFT_Zero-Allocation-Hashing -Psonar
You can’t perform that action at this time.
0 commit comments