diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 732930e..600cfff 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -26,11 +26,26 @@ jobs: #- name: Unit tests # run: npm run test + sonarcloud: + name: SonarCloud + runs-on: ubuntu-latest + needs: + - code-checks + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + docker-build: name: Build Docker image runs-on: ubuntu-latest needs: - - code-checks + - sonarcloud steps: - uses: actions/checkout@v4 - uses: docker/setup-buildx-action@v3