Files
vetclinic/.gitea/workflows/sonar-scan.yaml
demo-bot fa83536954
Some checks failed
Build / Build and analyze (push) Failing after 2m24s
Build and Push to ACR / Build and Push (push) Successful in 6m26s
Update .gitea/workflows/sonar-scan.yaml
2026-04-13 12:48:23 +00:00

43 lines
965 B
YAML

name: Build
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: read
jobs:
build:
name: Build and analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: maven
- name: Make Maven wrapper executable
run: chmod +x mvnw
- name: Build and analyze
run: ./mvnw -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=demo-platform
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
- uses: sonarsource/sonarqube-quality-gate-action@v1
timeout-minutes: 5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}