Skip to content

Commit 216e1b1

Browse files
committed
refactored ci config
- splits phpunit tests into suites - use github env for paths - fixed typo in phpunit config
1 parent 7eafee6 commit 216e1b1

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,20 @@ jobs:
1818
run: composer install --prefer-dist --no-progress --no-suggest
1919

2020
- name: Check src with php-cs-Fixer
21-
run: vendor/bin/php-cs-fixer fix --config ./.php_cs.dist --diff --diff-format udiff --dry-run
21+
run: vendor/bin/php-cs-fixer fix --config $GITHUB_WORKSPACE/.php_cs.dist --diff --diff-format udiff --dry-run
2222

2323
- name: Psalm Static Analysis
24-
run: vendor/bin/psalm -c psalm.xml
24+
run: vendor/bin/psalm -c $GITHUB_WORKSPACE/psalm.xml
2525
if: always()
2626

2727
- name: Unit Tests
28-
run: vendor/bin/simple-phpunit -c $GITHUB_WORKSPACE/phpunit.xml.dist
28+
run: vendor/bin/simple-phpunit -c $GITHUB_WORKSPACE/phpunit.xml.dist --testsuite unit
29+
if: always()
30+
31+
- name: Functional Tests
32+
run: vendor/bin/simple-phpunit -c $GITHUB_WORKSPACE/phpunit.xml.dist --testsuite functional
33+
if: always()
34+
35+
- name: Integration Tests
36+
run: vendor/bin/simple-phpunit -c $GITHUB_WORKSPACE/phpunit.xml.dist --testsuite integration
2937
if: always()

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<directory>./tests/FunctionalTests</directory>
2626
</testsuite>
2727
<testsuite name="integration">
28-
<directory>./tests/IntegratonTests</directory>
28+
<directory>./tests/IntegrationTests</directory>
2929
</testsuite>
3030
</testsuites>
3131

0 commit comments

Comments
 (0)