From 0de9f6cedb7d2a5420daf25d4cb128c91f437d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B2=A0=5F=E0=B2=A0?= Date: Sat, 19 Nov 2022 22:30:20 +0100 Subject: [PATCH] move e2e tests into a seperate ci job and disable e2e tests by default --- .github/workflows/ci.yaml | 8 ++++++-- phpunit.xml.dist | 7 ++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a1bb177..302d186 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 @@ -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 diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 62895e4..878ef9c 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,7 +1,7 @@ src + + + e2e + +