Skip to content

Commit c06f9f0

Browse files
committed
ci: #140 codecov coverage
1 parent 5a57bcd commit c06f9f0

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

.github/workflows/laravel-11.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,18 @@ jobs:
2727
npm run build
2828
2929
- name: PHPUnit
30+
env:
31+
XDEBUG_MODE: coverage
3032
run: |
31-
php artisan test --log-junit junit.xml
33+
php artisan test
3234
3335
- name: Upload test results to Codecov
3436
if: ${{ !cancelled() }}
3537
uses: codecov/test-results-action@v1
3638
with:
3739
token: ${{ secrets.CODECOV_TOKEN }}
40+
41+
- name: Upload coverage to Codecov
42+
uses: codecov/codecov-action@v4
43+
env:
44+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
Homestead.json
1515
Homestead.yaml
1616
auth.json
17+
junit.xml
1718
npm-debug.log
1819
yarn-error.log
1920
/.fleet

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# Wifidog Auth (Laravel 6)
22

3-
[![CircleCI](https://circleci.com/gh/wifidog/wifidog-auth-laravel.svg?style=svg)](https://circleci.com/gh/wifidog/wifidog-auth-laravel)
4-
[![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/wifidog/wifidog-auth-laravel.svg)](https://hub.docker.com/r/wifidog/wifidog-auth-laravel)
5-
[![codecov](https://codecov.io/gh/wifidog/wifidog-auth-laravel/branch/master/graph/badge.svg)](https://codecov.io/gh/wifidog/wifidog-auth-laravel)
3+
[![Docker Pulls](https://img.shields.io/docker/pulls/wifidog/wifidog-auth-laravel)](https://hub.docker.com/r/wifidog/wifidog-auth-laravel)
4+
[![codecov](https://codecov.io/github/wifidog/wifidog-auth-laravel/graph/badge.svg?token=KXFrMQY7vo)](https://codecov.io/github/wifidog/wifidog-auth-laravel)
65
[![LICENSE](https://img.shields.io/badge/license-Anti%20996-blue.svg)](https://github.com/wifidog/wifidog-auth-laravel/blob/master/LICENSE)
76

8-
This project provides a auth server for wifidog. For API details, please see the [WiFiDog Protocol V1](http://dev.wifidog.org/wiki/doc/developer/WiFiDogProtocol_V1).
7+
This project provides a auth server for wifidog. For API details, please see the [WiFiDog Protocol V1](https://github.com/wifidog/wifidog-auth-laravel/wiki).
98

109
## Features
1110

phpunit.xml

+8
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,12 @@
3030
<env name="SESSION_DRIVER" value="array"/>
3131
<env name="TELESCOPE_ENABLED" value="false"/>
3232
</php>
33+
<logging>
34+
<junit outputFile="junit.xml"/>
35+
</logging>
36+
<coverage>
37+
<report>
38+
<clover outputFile="coverage.xml"/>
39+
</report>
40+
</coverage>
3341
</phpunit>

0 commit comments

Comments
 (0)