Skip to content

Commit

Permalink
Merge pull request #12729 from tharindu1st/tharindu-sonar
Browse files Browse the repository at this point in the history
fix build
  • Loading branch information
tharindu1st authored Jan 2, 2025
2 parents 1742c16 + 4ae24e9 commit 21992e6
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/sonar-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,35 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Set up JDK 17
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 17
java-version: 11.0.16+8
distribution: 'temurin'
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2
restore-keys: ${{ runner.os }}-m2

- name: Build carbon-apimgt with Tests, skipping AspectJ
run: mvn clean install --file pom.xml -Dskip.aspectj=true -Dmaven.test.skip=true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'temurin'
- name: Cache SonarCloud packages
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
- name: run sonar scan
run: mvn sonar:sonar --file pom.xml -Dskip.aspectj=true -Dmaven.test.skip=true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 21992e6

Please sign in to comment.