diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af38703..4b5a8c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,16 @@ jobs: with: node-version: ${{ matrix.node-version }} + - name: SonarQube Scan + uses: sonarsource/sonarqube-scan-action@v3.0.0 + with: + args: > + -Dsonar.organization=${{ vars.SONAR_ORGANIZATION }} + -Dsonar.projectKey=${{ vars.SONAR_PROJECT_KEY }} + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} + - name: Install dependencies run: npm i