diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml new file mode 100644 index 0000000..2c305b9 --- /dev/null +++ b/.github/workflows/sonar.yml @@ -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 }}