From 790a6a8eb3d83a0b9ebc16f1ad80704e969119b1 Mon Sep 17 00:00:00 2001 From: Nicole Cordes Date: Thu, 25 Apr 2024 11:49:20 +0200 Subject: [PATCH] [FEATURE] Add functional tests to GitHub Actions --- .github/workflows/tests.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1d0a6c4..f37f846 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -77,3 +77,14 @@ jobs: - name: Unit Tests if: ${{ hashFiles('Tests/Unit/') != '' }} run: .Build/bin/phpunit --bootstrap .Build/vendor/typo3/testing-framework/Resources/Core/Build/UnitTestsBootstrap.php --testsuite unit + + - name: Functional Tests + if: ${{ hashFiles('Tests/Functional/') != '' }} + env: + typo3DatabaseHost: '127.0.0.1' + typo3DatabaseName: 'typo3' + typo3DatabasePassword: 'root' + typo3DatabaseUsername: 'root' + run: | + sudo /etc/init.d/mysql start + find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo "Running functional test suite {}"; .Build/bin/phpunit --bootstrap .Build/vendor/typo3/testing-framework/Resources/Core/Build/FunctionalTestsBootstrap.php {}'