Skip to content

Commit cd854fb

Browse files
authored
CodeCov support (#224)
1 parent 74e0be6 commit cd854fb

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,16 @@ jobs:
6464

6565
- name: Run tests with codeception with code coverage with shell bash.
6666
if: matrix.os == 'ubuntu-latest'
67-
run: vendor/bin/codecept run
67+
run: vendor/bin/codecept run --coverage --coverage-xml --disable-coverage-php
6868

6969
- name: Run tests with codeception with code coverage with shell powershell.
7070
if: matrix.os == 'windows-latest'
7171
run: vendor/bin/codecept run
7272
shell: powershell
73+
74+
- name: Upload coverage to Codecov.
75+
if: matrix.os == 'ubuntu-latest'
76+
uses: codecov/codecov-action@v4
77+
with:
78+
token: ${{ secrets.CODECOV_TOKEN }}
79+
files: runtime/tests/_output/coverage.xml

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[![Latest Stable Version](https://poser.pugx.org/yiisoft/app-api/v)](https://packagist.org/packages/yiisoft/app-api)
1010
[![Total Downloads](https://poser.pugx.org/yiisoft/app-api/downloads)](https://packagist.org/packages/yiisoft/app-api)
1111
[![build](https://github.com/yiisoft/app-api/actions/workflows/build.yml/badge.svg)](https://github.com/yiisoft/app-api/actions/workflows/build.yml)
12-
[![codecov](https://codecov.io/gh/yiisoft/app-api/graph/badge.svg?token=8XE1MPAZD4)](https://codecov.io/gh/yiisoft/app-api)
12+
[![Code Coverage](https://codecov.io/gh/yiisoft/app-api/branch/master/graph/badge.svg)](https://codecov.io/gh/yiisoft/app-api)
1313
[![static analysis](https://github.com/yiisoft/app-api/workflows/static%20analysis/badge.svg)](https://github.com/yiisoft/app-api/actions?query=workflow%3A%22static+analysis%22)
1414

1515
API application template for Yii 3.

0 commit comments

Comments
 (0)