Skip to content

Commit

Permalink
Update pull-request-checker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufkaya01 authored Nov 26, 2024
1 parent 9795353 commit 0d4d451
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/pull-request-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,24 @@ jobs:
run: sed 's|'{YOUR_PERSONAL_GITHUB_ACCESS_TOKEN}'|'${{ secrets.GH_USER_ACCESS_TOKEN }}'|g' settings.xml >> temp-settings.xml ; rm settings.xml ; mv temp-settings.xml settings.xml

- name: Build with Maven # Step to build the application using Maven with the provided settings.xml configuration file
run: mvn --settings settings.xml clean install
run: mvn --settings settings.xml clean install

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

- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Build and analyze
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=afet-yonetim-sistemi_ays-be_d0f7524c-aae5-4394-976c-0b286114d7ff -Dsonar.projectName='ays-be'

0 comments on commit 0d4d451

Please sign in to comment.