Skip to content

Commit

Permalink
Create sonar_scan.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Pixee OSS Assistant <[email protected]>
  • Loading branch information
pixeeai authored May 21, 2024
1 parent 85e02ef commit 3f906a6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/sonar_scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Run SonarQube with Maven

on: push

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build with Maven cloud
run: mvn -B verify sonar:sonar -Dsonar.projectKey=javareachabilityy -Dsonar.organization=javareachabilityy -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONARCLOUD_TOKEN
env:
GIT_HUB_TOKEN: ${{ secrets.GIT_HUB_TOKEN }}
SONARCLOUD_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}

0 comments on commit 3f906a6

Please sign in to comment.