Skip to content
Merged
Show file tree
Hide file tree
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
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,37 @@ jobs:

- name: Run unit tests with coverage
run: npm run test -- --coverage

sonarqube:
name: SonarQube Scan
runs-on: ubuntu-latest
needs: unit-tests
permissions:
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: 22
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Run unit tests with coverage
run: npm run test -- --coverage

- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v5
with:
args: >
-Dsonar.projectKey=${{ vars.SONAR_PROJECT_KEY }}
-Dsonar.organization=${{ vars.SONAR_ORGANIZATION }}
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Loading
Loading