File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 2222 java-version : 1.8
2323 - name : Build with Maven
2424 run : mvn -B package --file pom.xml
25+
26+ build-sonar :
27+ name : Build
28+ runs-on : ubuntu-latest
29+ steps :
30+ - uses : actions/checkout@v2
31+ with :
32+ fetch-depth : 0
33+ - name : Set up JDK 11
34+ uses : actions/setup-java@v1
35+ with :
36+ java-version : 11
37+ - name : Cache SonarCloud packages
38+ uses : actions/cache@v1
39+ with :
40+ path : ~/.sonar/cache
41+ key : ${{ runner.os }}-sonar
42+ restore-keys : ${{ runner.os }}-sonar
43+ - name : Cache Maven packages
44+ uses : actions/cache@v1
45+ with :
46+ path : ~/.m2
47+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
48+ restore-keys : ${{ runner.os }}-m2
49+ - name : Build and analyze
50+ env :
51+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52+ SONAR_TOKEN : 5**7
53+ run : mvn -B test jacoco:report org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.organization=mehmetazizyirik -Dsonar.host.url=https://sonarcloud.io -Dsonar.projectKey=MehmetAzizYirik_MAYGEN
54+ - uses : codecov/codecov-action@v1
55+ with :
56+ file : ./**/target/site/jacoco/jacoco.xml
57+ name : codecov
You can’t perform that action at this time.
0 commit comments