Skip to content

Commit c0ff375

Browse files
committed
added PHPUnit Github action and coverage report configuration
1 parent ccd3b3f commit c0ff375

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build-test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- uses: php-actions/composer@v5
13+
14+
- name: PHPUnit Tests
15+
uses: php-actions/phpunit@v2
16+
with:
17+
configuration: phpunit.xml
18+
args: --coverage-text

phpunit.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
<include>
88
<directory suffix=".php">./src</directory>
99
</include>
10+
<report>
11+
<html outputDirectory="./tests/_coverage" lowUpperBound="35" highLowerBound="70"/>
12+
<text outputFile="php://stdout" showUncoveredFiles="true"/>
13+
</report>
1014
</coverage>
1115
<testsuites>
1216
<testsuite name="LaravelSqlReporter">

0 commit comments

Comments
 (0)