Skip to content

Commit

Permalink
[FEATURE] Add functional tests to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
IchHabRecht committed Apr 25, 2024
1 parent 00aeffb commit 790a6a8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}'

0 comments on commit 790a6a8

Please sign in to comment.