Skip to content

Commit 1735e53

Browse files
authored
chore: migrate coverage reporting to Codecov (#1266)
1 parent 00f2142 commit 1735e53

3 files changed

Lines changed: 33 additions & 11 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,35 @@ on:
1313
jobs:
1414
coverage:
1515
name: "Nette Tester"
16-
uses: contributte/.github/.github/workflows/nette-tester-mysql.yml@v1
17-
with:
18-
php: "8.5"
19-
database: tests
20-
coverage: true
21-
make: coverage
16+
runs-on: "ubuntu-latest"
17+
18+
services:
19+
mysql:
20+
image: "mysql:5.7"
21+
env:
22+
MYSQL_ALLOW_EMPTY_PASSWORD: true
23+
MYSQL_DATABASE: "tests"
24+
ports:
25+
- 3306:3306
26+
27+
steps:
28+
- name: "Checkout"
29+
uses: "actions/checkout@v4"
30+
31+
- name: "PHP"
32+
uses: "contributte/.github/.github/actions/setup-php@master"
33+
with:
34+
php: "8.5"
35+
36+
- name: "Composer"
37+
uses: "contributte/.github/.github/actions/setup-composer@master"
38+
with:
39+
command: "composer install --no-interaction --no-progress --prefer-dist"
40+
41+
- name: "Run Nette Tester"
42+
run: "make coverage"
43+
44+
- name: "Codecov"
45+
uses: "codecov/codecov-action@v4"
46+
env:
47+
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<p align=center>
44
<a href="https://github.com/contributte/datagrid/actions"><img src="https://badgen.net/github/checks/contributte/datagrid/master"></a>
5-
<a href="https://coveralls.io/r/contributte/datagrid"><img src="https://badgen.net/coveralls/c/github/contributte/datagrid"></a>
5+
<a href="https://codecov.io/gh/contributte/datagrid"><img src="https://badgen.net/codecov/c/github/contributte/datagrid"></a>
66
<a href="https://packagist.org/packages/ublaboo/datagrid"><img src="https://badgen.net/packagist/dm/ublaboo/datagrid"></a>
77
<a href="https://packagist.org/packages/ublaboo/datagrid"><img src="https://badgen.net/packagist/v/ublaboo/datagrid"></a>
88
</p>

tests/.coveralls.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)