Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: SonarQube Analysis

on:
push:
branches:
- dev
- main
pull_request:
branches:
- dev
- main

permissions:
contents: read

jobs:
sonar-backend:
name: Backend Analysis (Maven)
uses: IFPBEsp/APAE-INFRA/.github/workflows/reusable-sonarqube-maven.yml@0f8d838637b0cd2f77a2c9361b3e7b577a4880bf
with:
project-key: "apae-geral-backend"
working-directory: "apps/api"
java-version: "21"
sonar-host-url: ${{ vars.SONAR_HOST_URL || 'https://sonarcloud.io' }}
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

sonar-frontend:
name: Frontend Analysis (Node)
uses: IFPBEsp/APAE-INFRA/.github/workflows/reusable-sonarqube-node.yml@0f8d838637b0cd2f77a2c9361b3e7b577a4880bf
with:
project-key: "apae-geral-frontend"
working-directory: "apps/apae"
node-version: "22"
sonar-host-url: ${{ vars.SONAR_HOST_URL || 'https://sonarcloud.io' }}
run-tests: true
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
Loading