Skip to content

Commit 4181b64

Browse files
committed
ADD code coverage in CI
1 parent c6a25ee commit 4181b64

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
with:
2020
php-version: ${{ matrix.php }}
2121
extensions: mbstring, xml, ctype, iconv, intl
22+
coverage: xdebug
2223

2324
# Cache Composer dependencies
2425
- name: Get composer cache directory
@@ -37,4 +38,4 @@ jobs:
3738

3839
# Run tests suite
3940
- name: Run test suite
40-
run: php vendor/bin/simple-phpunit
41+
run: php vendor/bin/simple-phpunit --coverage-text

phpunit.xml.dist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,11 @@
1818
<directory>tests</directory>
1919
</testsuite>
2020
</testsuites>
21+
22+
<coverage>
23+
<include>
24+
<directory suffix=".php">src</directory>
25+
</include>
26+
</coverage>
2127
</phpunit>
2228

src/AymdevCommonmarkBundle.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
class AymdevCommonmarkBundle extends Bundle
1010
{
11+
/**
12+
* @codeCoverageIgnore
13+
*/
1114
public function build(ContainerBuilder $container)
1215
{
1316
parent::build($container);

0 commit comments

Comments
 (0)