Skip to content

Maintenance/add sonar scan #55

Maintenance/add sonar scan

Maintenance/add sonar scan #55

Workflow file for this run

name: Verify
on:
push:
branches:
- master
pull_request:
jobs:
verify:
runs-on: ubuntu-latest
services:
rabbitmq:
image: rabbitmq:3-management-alpine
env:
RABBITMQ_DEFAULT_VHOST: /
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
ports:
- 15672:15672
- 5672:5672
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
cache: 'maven'
- name: Check file license headers
run: mvn license:check --batch-mode
- name: Run tests & javadoc & Sonar Scan
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
mvn verify javadoc:javadoc --batch-mode \
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
-Dsonar.organization=bosch-iot-rollouts -Dsonar.projectKey=bir-eclipse-hawkbit