spring-boot-starter/.forgejo/workflows/sonarqube.yaml
Oliver Weyhmueller 8a6ffe2082
All checks were successful
SonarQube Scan / SonarQube Trigger (push) Successful in 3m33s
release / Release (push) Successful in 4m31s
chore: simplify workflows
2025-01-08 07:33:11 +01:00

30 lines
799 B
YAML

---
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
name: SonarQube Scan
jobs:
sonarqube:
name: "SonarQube Trigger"
runs-on: ubuntu-latest
steps:
- name: "Initialize Environment"
uses: https://w9r.dev/w9r.dev/action-setup-environment@v1.1.4
with:
roleid: "${{ secrets.VAULT_ROLE_ID }}"
secretid: "${{ secrets.VAULT_SECRET_ID }}"
- name: "Cache SonarQube packages"
uses: https://github.com/actions/cache@v4
with:
path: ~/.sonar/cache
key: "${{ runner.os }}-sonar"
restore-keys: "${{ runner.os }}-sonar"
- name: "SonarQube Scan"
run: "mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar"