Skip to content

Commit

Permalink
Merge pull request #12727 from tharindu1st/tharindu-sonar
Browse files Browse the repository at this point in the history
fix sonar scaner
  • Loading branch information
tharindu1st authored Jan 2, 2025
2 parents 845bd47 + 1e4cc4c commit 5886fb0
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/sonar-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,11 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: 11.0.16+8
java-version: 17
distribution: 'temurin'
- uses: actions/setup-node@v3
with:
node-version: '14.x'
- name: Cache Maven packages
uses: actions/cache@v3
with:
Expand All @@ -38,14 +35,14 @@ jobs:
restore-keys: ${{ runner.os }}-m2

- name: Cache SonarCloud packages
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar

- name: Build carbon-apimgt with Tests, skipping AspectJ
run: mvn clean install sonar:sonar --file pom.xml -Dskip.aspectj=true -Dmaven.test.skip=true
run: mvn sonar:sonar --file pom.xml -Dskip.aspectj=true -Dmaven.test.skip=true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down

0 comments on commit 5886fb0

Please sign in to comment.