Skip to content

Commit

Permalink
Deactivate functional tests in Github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Richter committed Feb 29, 2024
1 parent 49005f1 commit 3462cac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 47 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,49 +70,3 @@ jobs:
run: "composer update --no-progress"
- name: "Run the tests"
run: "composer ci:tests:unit"

functional-tests:
name: Functional Tests
runs-on: ubuntu-22.04
needs: [ code-quality ]
strategy:
matrix:
php-version:
- '8.2'
- '8.3'
env:
DB_DATABASE: typo3
DB_USER: root
DB_PASSWORD: root
DB_HOST: 127.0.0.1

steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install PHP"
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php-version }}"
coverage: none
tools: composer:v2.6
- name: "Show Composer version"
run: composer --version
- name: "Show the Composer configuration"
run: composer config --global --list
- name: "Cache dependencies installed with composer"
uses: actions/cache@v4
with:
key: "php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
path: ~/.cache/composer
restore-keys: "php${{ matrix.php-version }}-composer-\n"
- name: "Install Composer dependencies"
run: "composer update --no-progress"
- name: "Start MySQL"
run: "sudo /etc/init.d/mysql start"
- name: "Run the tests"
run: |
export typo3DatabaseName="$DB_DATABASE";
export typo3DatabaseHost="$DB_HOST";
export typo3DatabaseUsername="$DB_USER";
export typo3DatabasePassword="$DB_PASSWORD";
composer ci:tests:functional
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"scripts": {
"ci": [ "@ci:php", "@ci:tests" ],
"ci:php": [ "@ci:php:stan" ],
"ci:tests": [ "@ci:tests:unit" ],
"ci:tests": [ "@ci:tests:unit", "@ci:tests:functional" ],
"ci:php:stan": [ "phpstan analyse Classes" ],
"ci:tests:functional": [ "phpunit -c config/FunctionalTests.xml" ],
"ci:tests:unit": [ "phpunit -c config/UnitTests.xml" ]
Expand Down

0 comments on commit 3462cac

Please sign in to comment.