Skip to content

Fix OS matrix and update Ubuntu dependency installation #167

Fix OS matrix and update Ubuntu dependency installation

Fix OS matrix and update Ubuntu dependency installation #167

Workflow file for this run

name: Sonar
on: push
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
env:
MAVEN_OPTS: -Dhttp.keepAlive=false
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- run: mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=albertus82-github -B -V -e -ntp
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}