Skip to content

Commit 2e4b940

Browse files
author
Inbal Tako
committed
Fix phpunit
1 parent c091d24 commit 2e4b940

4 files changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
- uses: actions/checkout@v2
2929
- uses: php-actions/composer@v1
3030
- uses: php-actions/phpunit@v9
31+
with:
32+
configuration: test/phpunit.xml
3133

3234
- name: Publish to codecov
3335
run: bash <(curl -s https://codecov.io/bash)

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
- uses: actions/checkout@v2
2626
- uses: php-actions/composer@v1
2727
- uses: php-actions/phpunit@v9
28+
with:
29+
configuration: test/phpunit.xml
2830

2931
- name: Publish to codecov
3032
run: bash <(curl -s https://codecov.io/bash)

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
- uses: actions/checkout@v2
2323
- uses: php-actions/composer@v1
2424
- uses: php-actions/phpunit@v9
25+
with:
26+
configuration: test/phpunit.xml
2527

2628
- name: Publish to codecov
2729
run: bash <(curl -s https://codecov.io/bash)

test/phpunit.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0"?>
2+
<phpunit colors="true">
3+
<testsuites>
4+
<testsuite name="main">
5+
<directory suffix="Test.php">.</directory>
6+
</testsuite>
7+
</testsuites>
8+
9+
<filter>
10+
<whitelist>
11+
<directory suffix=".php">../src</directory>
12+
</whitelist>
13+
</filter>
14+
</phpunit>

0 commit comments

Comments
 (0)