Skip to content

Fix DB unit tests #3431

Fix DB unit tests

Fix DB unit tests #3431

Workflow file for this run

name: SonarCloud analysis
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
workflow_dispatch:
permissions:
pull-requests: read # allows SonarCloud to decorate PRs with analysis results
jobs:
Sonar-Test-Analysis:
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'liberica'
java-version: '17'
cache: 'gradle'
- name: Analyze with SonarCloud
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: env.SONAR_TOKEN != ''
run: >-
./gradlew --no-daemon -Dspring.profiles.active=default,hsqldb -DfailOnPassedAfterRetry=false --no-daemon test jacocoTestReport || true;
./gradlew --no-daemon sonar;
./gradlew --no-daemon jacocoTestReport;