diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c2fbf9b..5d8142a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup PHP uses: shivammathur/setup-php@v2 with: @@ -18,9 +20,17 @@ jobs: run: composer install --no-interaction - name: Unit tests run: composer test - - name: Coverage Report + - name: SonarCloud Scan + uses: sonarsource/sonarcloud-github-action@master if: matrix.php == '8.1' - uses: codecov/codecov-action@v3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + with: + args: > + -Dsonar.organization=pluginkollektiv + -Dsonar.projectKey=pluginkollektiv_antivirus + quality: runs-on: ubuntu-latest steps: