# # # Publish docker workflow for all modules of captica.expert # # Project: workflows # Author: Marc Böhm # License: MIT License (see LICENSE.md) # # Copyright (c) captica GmbH est. 2021 # name: Quality check for captica.expert modules on: workflow_call: jobs: build_quality: name: Build and publishquality runs-on: docker-ubuntu-nonroot steps: - name: Checkout source code uses: actions/checkout@v4 with: token: ${{ secrets.GIT_ACCESS_TOKEN }} submodules: 'true' - name: Setup java runtime uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: '21' - name: Run gradle build process run: | ./gradlew build - name: Echo repo run: | echo "Repository ${{ gitea.repository }}" echo "ref_name ${{ gitea.ref_name }}" echo "Ref ${{ gitea.ref }}" echo "sha ${{ gitea.sha }}" echo "tag_name ${{ gitea.tag_name }}" echo "revision ${{ gitea.revision }}" echo "branch ${{ gitea.branch }}" - name: Run quality measurement run: | - ./gradlew qualityCheck -PBRANCH_NAME=${{ gitea.ref_name }}E -PBRANCH_REVISION=${{ gitea.sha }} -PTAG_NAME=${{ gitea.tag_name }} -Dsonar.host.url=${{ secrets.SONARQUBE_HOST }} -Dsonar.login=${{ secrets.SONARQUBE_TOKEN }} -Dsonar.password=''