From cf143b55a743bc5672993583d9e8059b63675457 Mon Sep 17 00:00:00 2001 From: Andreas Schmitz Date: Thu, 31 Aug 2023 11:52:29 +0200 Subject: [PATCH] Add sonar scanner and build workflow --- .github/workflows/build.yml | 22 ++++++++++++++++++++++ pom.xml | 7 +++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..7c10be4 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,22 @@ +name: build and analyse + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + java-version: [ 11, 17 ] + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: ${{ matrix.java-version }} + cache: 'maven' + - run: mvn -B install --no-transfer-progress + - name: Analyse code and publish to SonarQube 📊 + run: mvn -B -Dsonar.password=${{ secrets.SONAR_PASSWORD }} sonar:sonar diff --git a/pom.xml b/pom.xml index 292508f..a603ece 100644 --- a/pom.xml +++ b/pom.xml @@ -42,6 +42,13 @@ + + UTF-8 + https://sq.terrestris.de + terrestris + src/main/ + + reporting