Skip to content
Open
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
30 changes: 30 additions & 0 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: SonarQube Analysis
on:
workflow_run:
workflows: [React Template CI]
types:
- requested

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

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

-name: Echo to test
run: echo "Hello World"

# - 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 }}