Skip to content

Commit

Permalink
Merge pull request #4 from jescarri/test/sonarqube
Browse files Browse the repository at this point in the history
TES: sonarqube gh action
  • Loading branch information
jescarri authored Mar 2, 2025
2 parents a147567 + 17da98d commit 06b9b1f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
name: Build

on:
# Trigger analysis when pushing to your main branches, and when creating a pull request.
push:
branches:
- main

- '**'
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:
name: Build and analyze
sonarqube:
name: sonarqube-analize
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: SonarSource/sonarqube-scan-action@v4
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
# If you wish to fail your job when the Quality Gate is red, uncomment the
# following lines. This would typically be used to fail a deployment.
# - uses: SonarSource/sonarqube-quality-gate-action@v1
# timeout-minutes: 5
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- uses: actions/checkout@v4
with:
# Disabling shallow clones is recommended for improving the relevancy of reporting
fetch-depth: 0
- name: SonarQube Scan
uses: SonarSource/[email protected]
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
File renamed without changes.

0 comments on commit 06b9b1f

Please sign in to comment.