Issue #502: update to LTS 9.9; cleanup deprecations #327
Workflow file for this run
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
name: sonar-checkstyle-workflows | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
mvn-install: | |
name: Install | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
java-version: ['11', '17'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: 'temurin' | |
- run: "./.ci/ci.sh install" | |
# depreacted for now since SQ removed the application ZIP files needed for the integration tests | |
# integration-tests: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: Set up JDK 11 | |
# uses: actions/setup-java@v1 | |
# with: | |
# java-version: 11 | |
# - name: run integration tests | |
# run: "./.ci/ci.sh integration-tests" | |
nondex: | |
name: Install | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
java-version: ['11', '17'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: 'temurin' | |
- run: "./.ci/ci.sh nondex" | |
execute-sonarqube-plugin: | |
name: Execute SonarQube Plugin | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Build Jar | |
run: mvn -e --no-transfer-progress package -Pno-validations | |
- name: Run SonarQube | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: sonarqube:9.9-community | |
options: -d --name sonarqube -p 9000:9000 -v ${{ github.workspace }}/target/:/opt/sonarqube/extensions/plugins/ | |
- name: Check SonarQube is Up | |
run: | | |
while [[ ! `curl -s http://localhost:9000/api/system/status` =~ "UP" ]]; do | |
echo "Waiting for web server to come up..." | |
sleep 10 | |
done | |
- name: Execute SonarQube analysis | |
run: | | |
mvn -e --no-transfer-progress sonar:sonar -Dsonar.login=admin -Dsonar.password=admin | |
- name: Archive Checkstyle Results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: checkstyle-result | |
path: target/sonar/checkstyle-result.xml | |
- name: Check logs for error | |
run: docker logs sonarqube | grep "ERROR" || test $? = 1 |