Skip to content

Commit

Permalink
ci: replace Codecov with SonarCloud scan
Browse files Browse the repository at this point in the history
Synchronize our projects and move AntiVirus to SonarCloud, too.
Use a dedicated CI step here to process code coverage.
  • Loading branch information
stklcode committed Sep 17, 2023
1 parent e55943c commit 20596e3
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 20596e3

Please sign in to comment.