Skip to content

Remove SonarCloud

Remove SonarCloud #134

Workflow file for this run

name: CI Build
on:
push:
branches:
- main
pull_request:
types: [ opened, synchronize, reopened ]
merge_group:
types: [ checks_requested ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Retrieve Java Version
run: |
java_version=$(mvn help:evaluate "-Dexpression=maven.compiler.release" -q -DforceStdout | sed -e 's/^1\./1.0./')
echo "JAVA_VERSION=$java_version" >> $GITHUB_ENV
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: 'temurin'
cache: maven
- name: Cache SonarCloud packages
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Run Tests
run: mvn -B test --file pom.xml --no-transfer-progress -Pcoverage