Skip to content

Commit

Permalink
Merge pull request #5 from HASEL-UZH/sonarqube
Browse files Browse the repository at this point in the history
use sonar instead of sonarqube
  • Loading branch information
isicu authored Mar 13, 2024
2 parents 70b5529 + 8603072 commit b02aab4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@ on:
workflow_dispatch:

jobs:
# test:
# name: Test and Sonarqube
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout repository code
# uses: actions/checkout@v2
#
# - name: Install Java 17
# uses: actions/setup-java@v3
# with:
# distribution: "temurin"
# java-version: "17"
#
# - name: Test and analyze
# run: ./gradlew test jacocoTestReport sonarqube
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
test:
name: Test and Sonarqube
runs-on: ubuntu-latest

steps:
- name: Checkout repository code
uses: actions/checkout@v4

- name: Install Java 17
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"

- name: Test and analyze
run: ./gradlew test jacocoTestReport sonar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

deploy:
name: Deploying to Google Cloud
Expand Down
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id 'java'
id 'idea'
id 'jacoco'
id "org.sonarqube" version "3.5.0.2730"
id "org.sonarqube" version "4.4.1.3373"
}

group 'ch.uzh.ifi.hasel'
Expand Down Expand Up @@ -53,12 +53,12 @@ bootJar {
archiveFileName = "${archiveBaseName.get()}.${archiveExtension.get()}"
}

sonarqube {
properties {
property "sonar.projectKey", "TODO"
property "sonar.organization", "TODO"
property "sonar.host.url", "TODO"
}
sonar {
properties {
property "sonar.projectKey", "TODO"
property "sonar.organization", "TODO"
property "sonar.host.url", "TODO"
}
}

jacocoTestReport {
Expand Down

0 comments on commit b02aab4

Please sign in to comment.