@@ -25,30 +25,30 @@ jobs:
25
25
distribution : ' adopt'
26
26
- name : Build with Maven
27
27
run : mvn -B package --file pom.xml
28
- # - name: Cache SonarCloud packages
29
- # uses: actions/cache@v1
30
- # with:
31
- # path: ~/.sonar/cache
32
- # key: ${{ runner.os }}-sonar
33
- # restore-keys: ${{ runner.os }}-sonar
34
- # - name: Cache Maven packages
35
- # uses: actions/cache@v1
36
- # with:
37
- # path: ~/.m2
38
- # key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
39
- # restore-keys: ${{ runner.os }}-m2
40
- # - name: Build and analyze with Sonar
41
- # env:
42
- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
43
- # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
44
- # run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -DskipGpg=true
45
- # # coverage report: https://app.codecov.io/gh/pkiraly/metadata-qa-marc
46
- # - name: Pubish code coverage at codecov.io
47
- # uses: codecov/codecov-action@v1
48
- # with:
49
- # file: ./**/target/site/jacoco/jacoco.xml
50
- # name: codecov
51
- # # COVERALL_REPO_TOKEN is available as the TOKEN variable at https://coveralls.io/github/pkiraly/metadata-qa-marc
52
- # # coverage report: https://coveralls.io/github/pkiraly/metadata-qa-marc
53
- # - name: Coveralls Coverage Report Submission
54
- # run: mvn coveralls:report -DrepoToken=${{ secrets.COVERALL_REPO_TOKEN }}
28
+ - name : Cache SonarCloud packages
29
+ uses : actions/cache@v1
30
+ with :
31
+ path : ~/.sonar/cache
32
+ key : ${{ runner.os }}-sonar
33
+ restore-keys : ${{ runner.os }}-sonar
34
+ - name : Cache Maven packages
35
+ uses : actions/cache@v1
36
+ with :
37
+ path : ~/.m2
38
+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
39
+ restore-keys : ${{ runner.os }}-m2
40
+ - name : Build and analyze with Sonar
41
+ env :
42
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
43
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
44
+ run : mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -DskipGpg=true
45
+ # coverage report: https://app.codecov.io/gh/pkiraly/metadata-qa-marc
46
+ - name : Pubish code coverage at codecov.io
47
+ uses : codecov/codecov-action@v1
48
+ with :
49
+ file : ./**/target/site/jacoco/jacoco.xml
50
+ name : codecov
51
+ # COVERALL_REPO_TOKEN is available as the TOKEN variable at https://coveralls.io/github/pkiraly/metadata-qa-marc
52
+ # coverage report: https://coveralls.io/github/pkiraly/metadata-qa-marc
53
+ - name : Coveralls Coverage Report Submission
54
+ run : mvn coveralls:report -DrepoToken=${{ secrets.COVERALL_REPO_TOKEN }}
0 commit comments