Skip to content

Commit

Permalink
Run SonarScanner for SonarCloud with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MaisiKoleni committed Aug 12, 2020
1 parent b34eb03 commit aa97bd3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@ jobs:
java-version: ${{ matrix.java }}
- name: Test with Maven and JDK ${{ matrix.java }}
run: mvn -B clean test
sonar-scanner:
needs: test
runs-on: ubuntu-latest
name: SonarCloud Java 14
steps:
- uses: actions/checkout@v2
- name: Set up JDK 14
uses: actions/setup-java@v1
with:
java-version: 14
- name: Run SonarScanner for SonarCloud
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -B clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=artemis-java-test-sandbox -Dsonar.organization=maisikoleni -Dsonar.host.url=https://sonarcloud.io
deploy:
if: startsWith(github.event.ref, 'refs/tags/')
needs: test
Expand Down

0 comments on commit aa97bd3

Please sign in to comment.