Skip to content

Commit

Permalink
Add functional tests to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Richter committed Mar 4, 2024
1 parent 6b8fcd6 commit 7cb2b29
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,49 @@ 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: [ php-lint, composer-validate ]
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

0 comments on commit 7cb2b29

Please sign in to comment.