Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
run: make analyse

tests:
name: "Tests on PHP ${{ matrix.php-version }} ${{ matrix.prefer-lowest }}"
name: "Tests ${{ matrix.php-version }} ${{ matrix.prefer-lowest }}"

runs-on: ubuntu-latest

Expand All @@ -78,4 +78,8 @@ jobs:
run: composer update ${{ matrix.prefer-lowest }} --no-interaction --no-progress --optimize-autoloader

- name: "Run tests"
run: vendor/bin/phpunit --exclude-group=e2e
run: vendor/bin/paratest

- name: "Run E2E tests"
if: ${{ env.MOBILEPAY_API_KEY != '' }}
run: vendor/bin/paratest --group=e2e
7 changes: 6 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
bootstrap="vendor/autoload.php"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
Expand All @@ -23,6 +23,11 @@
<directory suffix="Test.php">src</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>e2e</group>
</exclude>
</groups>
<php>
<env name="MOBILEPAY_API_KEY" value=""/>
<env name="MOBILEPAY_PAYMENTPOINT_ID" value=""/>
Expand Down