Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn clean package jacoco:report
- name: Analyze with SonarQube

# You can pin the exact commit or the version.
Expand All @@ -57,6 +66,9 @@ jobs:
# mandatory
-Dsonar.projectKey=Kilowatt-Commando_controller-service
-Dsonar.organization=kilowatt-commando
-Dsonar.java.binaries=target/classes
-Dsonar.tests=src/test/
-Dsonar.sources=src/main
# Comma-separated paths to directories containing main source files.
#-Dsonar.sources= # optional, default is project base directory
# When you need the analysis to take place in a directory other than the one from which it was launched
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Powerplant Controller Service
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Kilowatt-Commando_controller-service&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=Kilowatt-Commando_controller-service)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=Kilowatt-Commando_controller-service&metric=coverage)](https://sonarcloud.io/summary/new_code?id=Kilowatt-Commando_controller-service)

[![SonarQube Cloud](https://sonarcloud.io/images/project_badges/sonarcloud-highlight.svg)](https://sonarcloud.io/summary/new_code?id=Kilowatt-Commando_controller-service)

This repository contains the controller microservice.

## Testcontainers
Expand Down Expand Up @@ -32,4 +37,4 @@ docker run \
-e KAFKA_BROKER=<broker_ip_address> \
-e KAFKA_BROKER_PORT=<broker_port> \
kwkmdo-controller
```
```
Loading