Skip to content

Commit

Permalink
Add Codacy coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Kovah committed Aug 27, 2024
1 parent 40837b5 commit 25a915f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ jobs:
- name: Run PHPunit
run: composer run test

- name: Report coverage to Codacy
uses: codacy/[email protected]
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./test-coverage.xml

- uses: actions/upload-artifact@v4
if: failure()
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Additionally, you may visit the [community discussions](https://github.com/Kovah

### :construction: Contribution

[![Translations](https://img.shields.io/badge/Translations-Crowdin-2b303d)](https://crowdin.com/project/linkace) ![GitHub branch check runs](https://img.shields.io/github/check-runs/kovah/linkace/2.x?label=Checks)
[![Translations](https://img.shields.io/badge/Translations-Crowdin-2b303d)](https://crowdin.com/project/linkace) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/c32c698ee97b4af2b04d7b7f45f39bae)](https://app.codacy.com/gh/Kovah/LinkAce/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) ![GitHub branch check runs](https://img.shields.io/github/check-runs/kovah/linkace/2.x?label=Checks)

Please consult the [**contribution guidelines**](CONTRIBUTING.md) to start working on LinkAce.

Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@
"@php artisan package:discover --ansi"
],
"lint": "./vendor/bin/phpcs --runtime-set ignore_warnings_on_exit 1",
"test": "./vendor/bin/phpunit",
"code-coverage": "./vendor/bin/phpunit --coverage-clover test-coverage.xml"
"test": "./vendor/bin/phpunit --coverage-clover test-coverage.xml"
},
"config": {
"optimize-autoloader": true,
Expand Down

0 comments on commit 25a915f

Please sign in to comment.