Skip to content

Commit

Permalink
#382 Update java version for sonarcloud.
Browse files Browse the repository at this point in the history
Signed-off-by: Gautier Bureau <[email protected]>
  • Loading branch information
gautierbureau authored and rosiereflo committed Jan 30, 2024
1 parent e0466df commit ef3b176
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ jobs:
unzip sonar-scanner-cli-${SONAR_SCANNER_VERSION}.zip
ln -s sonar-scanner-${SONAR_SCANNER_VERSION} sonar
rm sonar-scanner-cli-${SONAR_SCANNER_VERSION}.zip
dnf install -y java-11-openjdk
cd /
curl -LO https://download.java.net/java/GA/jdk17.0.2/dfd4a8d0985749f896bed50d7138ee7f/8/GPL/openjdk-17.0.2_linux-x64_bin.tar.gz
tar xzf openjdk-17.0.2_linux-x64_bin.tar.gz
- name: Checkout sources
uses: actions/checkout@v3
Expand Down Expand Up @@ -96,7 +98,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
CONTAINER_WORKSPACE: ${{ runner.workspace }}
run: $CONTAINER_WORKSPACE/sonar/bin/sonar-scanner -Dsonar.host.url=https://sonarcloud.io -Dsonar.cfamily.threads=2
JAVA_HOME: /jdk-17.0.2
run: |
export PATH=${JAVA_HOME}/bin:${PATH}
$CONTAINER_WORKSPACE/sonar/bin/sonar-scanner -Dsonar.host.url=https://sonarcloud.io -Dsonar.cfamily.threads=2
build-windows:
runs-on: windows-2019
Expand Down

0 comments on commit ef3b176

Please sign in to comment.