Files
andreferraroandCursor b3f515bb64
sonar / sonar (push) Skipped
sonar / sonar (pull_request) Canceled after 7m29s
fix: run all tests in CI and remap LCOV paths for Sonar
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 15:06:50 -03:00

45 lines
900 B
YAML

name: sonar
on:
push:
branches:
- main
- develop
- "release/**"
pull_request:
branches:
- main
- develop
- "release/**"
jobs:
sonar:
name: sonar
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm
- name: Install, test, coverage
run: |
npm ci
npm run test:coverage
- name: SonarQube Scan + Quality Gate
uses: sonarsource/sonarqube-scan-action@v6
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
with:
args: >
-Dsonar.qualitygate.wait=true
-Dsonar.qualitygate.timeout=300