-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #502: update to LTS 9.9; cleanup deprecations
- Loading branch information
Showing
44 changed files
with
381 additions
and
1,093 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
name: execute-sonar | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
build-project: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Build with Maven | ||
run: mvn -e --no-transfer-progress package -Pno-validations | ||
|
||
- name: Persist Jar File | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: jar-file | ||
path: target/checkstyle-sonar-plugin*.jar | ||
retention-days: 1 | ||
|
||
execute-sonar: | ||
runs-on: ubuntu-latest | ||
needs: build-project | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Download workspace | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: jar-file | ||
path: target | ||
- name: Copy Jar File | ||
run: cp target/checkstyle-sonar-plugin*.jar /opt/sonarqube/extensions/plugins/ | ||
|
||
- name: Run SonarQube | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: sonarqube:9.9-community | ||
options: -d -p 9000:9000 -p 9092:9092 | ||
|
||
- name: Run SonarQube Analysis | ||
run: | | ||
mvn -e --no-transfer-progress sonar:sonar -Dsonar.login=admin -Dsonar.password=admin | ||
- name: Store artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: sonar-results | ||
path: target/sonar/checkstyle-result.xml | ||
|
||
- name: Collect logs | ||
uses: jwalton/gh-docker-logs@v2 | ||
with: | ||
dest: logs | ||
- name: Check logs for error | ||
run: grep "ERROR" ./logs/* || test $? = 1 | ||
|
||
# sonarqube: | ||
# runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - uses: actions/checkout@v2 | ||
|
||
# - name: Set up JDK 11 | ||
# uses: actions/setup-java@v2 | ||
# with: | ||
# java-version: '11' | ||
# distribution: 'adopt' | ||
|
||
# - name: Install jq | ||
# run: sudo apt-get install -y jq | ||
|
||
# - name: Run sonarqube | ||
# run: | | ||
# export PR_NUMBER=${{ github.event.pull_request.number }} | ||
# export PR_BRANCH_NAME=${{ github.head_ref }} | ||
# export SONAR_API_TOKEN=${{ secrets.SONAR_TOKEN }} | ||
# ./.ci/sonarqube.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.