1
0
mirror of https://github.com/Kovah/LinkAce.git synced 2025-04-21 07:22:20 +02:00

Add Codacy coverage reporting

This commit is contained in:
Kovah 2024-08-27 16:58:56 +02:00
parent 40837b5fbf
commit 25a915f8f0
No known key found for this signature in database
GPG Key ID: AAAA031BA9830D7B
3 changed files with 8 additions and 3 deletions

View File

@ -92,6 +92,12 @@ jobs:
- name: Run PHPunit
run: composer run test
- name: Report coverage to Codacy
uses: codacy/codacy-coverage-reporter-action@v1.3.0
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./test-coverage.xml
- uses: actions/upload-artifact@v4
if: failure()
with:

View File

@ -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.

View File

@ -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,