Skip to content

Commit 6cc980e

Browse files
committed
Build failure: testing #269
1 parent 390aa38 commit 6cc980e

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

.github/workflows/maven.yml

+27-27
Original file line numberDiff line numberDiff line change
@@ -25,30 +25,30 @@ jobs:
2525
distribution: 'adopt'
2626
- name: Build with Maven
2727
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

Comments
 (0)