Skip to content

Commit cd35aae

Browse files
authored
Fix upload of code coverage (#165)
1 parent 8c4daea commit cd35aae

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,16 @@ jobs:
6262
- name: Test
6363
run: phpunit --coverage-text --coverage-clover=coverage.xml
6464

65-
- name: Upload coverage data
65+
- name: Upload coverage data to codecov
66+
if: matrix.php-versions == '7.4'
6667
uses: codecov/codecov-action@v1
6768

69+
- name: Upload coverage data to scrutinizer
70+
if: matrix.php-versions == '7.4'
71+
run: |
72+
wget https://scrutinizer-ci.com/ocular.phar
73+
php ocular.phar code-coverage:upload --format=php-clover coverage.xml
74+
6875
build-docs:
6976
runs-on: ubuntu-latest
7077
steps:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ It is not maintained by OpenWeatherMap and not an official API wrapper.
1010
[![Build Status](https://github.com/cmfcmf/OpenWeatherMap-PHP-API/actions/workflows/main.yml/badge.svg)](https://github.com/cmfcmf/OpenWeatherMap-PHP-API/actions/workflows/main.yml)
1111
[![license](https://img.shields.io/github/license/cmfcmf/OpenWeatherMap-PHP-Api.svg)](https://github.com/cmfcmf/OpenWeatherMap-PHP-Api/blob/master/LICENSE)
1212
[![release](https://img.shields.io/github/release/cmfcmf/OpenWeatherMap-PHP-Api.svg)](https://github.com/cmfcmf/OpenWeatherMap-PHP-Api/releases)
13-
[![codecov](https://codecov.io/gh/cmfcmf/OpenWeatherMap-PHP-Api/branch/master/graph/badge.svg)](https://codecov.io/gh/cmfcmf/OpenWeatherMap-PHP-Api)
13+
[![codecov](https://codecov.io/gh/cmfcmf/OpenWeatherMap-PHP-Api/branch/main/graph/badge.svg)](https://codecov.io/gh/cmfcmf/OpenWeatherMap-PHP-Api)
1414
[![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/cmfcmf/OpenWeatherMap-PHP-Api/badges/quality-score.png?s=f31ca08aa8896416cf162403d34362f0a5da0966)](https://scrutinizer-ci.com/g/cmfcmf/OpenWeatherMap-PHP-Api/)
1515

1616
Documentation

tests/MyTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static function assertInternalType(string $expected, $actual, string $mes
3737
throw new Error();
3838
}
3939
} else {
40-
\PHPUnit\Framework\TestCase::assertInternalType($expected, $actual, $message = '');
40+
\PHPUnit\Framework\TestCase::assertInternalType($expected, $actual, $message);
4141
}
4242
}
4343
}

0 commit comments

Comments
 (0)