Skip to content

Commit

Permalink
feat: sonar integration
Browse files Browse the repository at this point in the history
  • Loading branch information
anasnadeemws committed Apr 10, 2024
1 parent 54dc925 commit 3dd57d3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: SonarQube Analysis
on:
workflow_run:
workflows: [React Template CI]
types: [completed]

jobs:
sonar-analysis:
name: SonarQube Analysis
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Download code coverage artifact
uses: actions/download-artifact@v2
with:
name: coverage
path: coverage/lcov.info

- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

0 comments on commit 3dd57d3

Please sign in to comment.