Skip to content

Commit

Permalink
Try to split build and verify to get converage
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Oct 19, 2020
1 parent 32d1947 commit e5ddfd1
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,19 @@ jobs:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build and analyze
- name: Build
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
run: mvn -B clean package
- name: fix code coverage paths
working-directory: ./coverage
run: |
sed -i 's/\/home\/runner\/work\/Bank\/Bank\//\/github\/workspace\//g' lcov.info
sed -i 's/\/home\/runner\/work\/Bank\/Bank\//\/github\/workspace\//g' sonar-cloud-reporter.xml
- name: 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

0 comments on commit e5ddfd1

Please sign in to comment.