Skip to content

Commit

Permalink
fix: test sonar.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
anasnadeemws committed Apr 10, 2024
1 parent dd63a7a commit 105b9d8
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
workflow_run:
workflows: [React Template CI]
types:
- completed
- requested

jobs:
sonar-analysis:
Expand All @@ -14,14 +14,17 @@ jobs:
- 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: Echo to test
run: echo "Hello World"

- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
# - 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 105b9d8

Please sign in to comment.