Skip to content

Commit

Permalink
Addd coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
pkiraly authored Jul 7, 2021
1 parent 7524e8d commit 77ff001
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,23 @@ jobs:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar

- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -DskipGpg=true

- name: Coveralls GitHub Action
# You may pin to the exact commit or the version.
# uses: coverallsapp/github-action@9ba913c152ae4be1327bfb9085dc806cedb44057
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 77ff001

Please sign in to comment.