Skip to content

♻️ [Test] Added new set of test cases to test JobEngine Device Management Target Processors #1022

♻️ [Test] Added new set of test cases to test JobEngine Device Management Target Processors

♻️ [Test] Added new set of test cases to test JobEngine Device Management Target Processors #1022

name: Sonar Scan
on:
push:
branches:
- 'develop'
- 'release-**'
pull_request:
branches:
- 'develop'
- 'release-**'
jobs:
build:
name: Analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'zulu'
- name: Set up Node 16
uses: actions/setup-node@v4
with:
node-version: 16
- name: Install Swagger CLI # Installs Swagger CLI to bundle OpenAPI files
run: 'npm install -g @apidevtools/swagger-cli'
- name: Cache SonarQube packages
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -B compile -PsonarScan