Skip to content

Commit 14b4f9f

Browse files
committed
Github Action
1 parent 5f9ee55 commit 14b4f9f

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
- uses: php-actions/composer@v5
12+
- uses: php-actions/composer@dynamic-docker
13+
14+
- name: PHPUnit Tests
15+
uses: php-actions/phpunit@dynamic-docker
16+
with:
17+
bootstrap: vendor/autoload.php
18+
configuration: tests/phpunit.xml
19+
args: --coverage-text

tests/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)