mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-10 01:16:12 +01:00

[FEATURE] Run the functional tests via GitHub Actions (#55)

This commit is contained in:
Oliver Klee 2020-06-06 23:09:20 +02:00 committed by GitHub
parent 59384b3d68
commit 74813e9a0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 69 additions and 3 deletions

View file

@ -104,10 +104,10 @@ jobs:
matrix: matrix:
typo3-version: typo3-version:
- "^9.5" - "^9.5"
#- "^10.2" #- "^10.4"
composer-dependencies: composer-dependencies:
- highest - highest
# - lowest #- lowest
php-version: php-version:
- 7.2 - 7.2
- 7.3 - 7.3
@ -122,7 +122,7 @@ jobs:
with: with:
php-version: ${{ matrix.php-version }} php-version: ${{ matrix.php-version }}
- name: "Cache dependencies installed with composer" - name: Cache dependencies installed with composer
uses: actions/cache@v1 uses: actions/cache@v1
with: with:
path: ~/.composer/cache path: ~/.composer/cache
@ -151,3 +151,68 @@ jobs:
- name: Run unit tests - name: Run unit tests
run: composer ci:tests:unit run: composer ci:tests:unit
functional-tests:
name: Functional tests
runs-on: ubuntu-latest
strategy:
matrix:
typo3-version:
- "^9.5"
#- "^10.4"
composer-dependencies:
- highest
#- lowest
php-version:
- 7.2
- 7.3
- 7.4
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Cache dependencies installed with composer
uses: actions/cache@v1
with:
path: ~/.composer/cache
key: php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
php${{ matrix.php-version }}-composer-
- name: Install TYPO3 Core
env:
TYPO3: ${{ matrix.typo3-version }}
run: |
composer require typo3/minimal:"$TYPO3"
composer show
- name: Install lowest dependencies with composer
if: matrix.composer-dependencies == 'lowest'
run: |
composer update --no-ansi --no-interaction --no-progress --no-suggest --prefer-lowest
composer show
- name: Install highest dependencies with composer
if: matrix.composer-dependencies == 'highest'
run: |
composer update --no-ansi --no-interaction --no-progress --no-suggest
composer show
- name: Start MySQL
run: sudo /etc/init.d/mysql start
- name: Run functional tests
run: |
export typo3DatabaseName="typo3";
export typo3DatabaseHost="127.0.0.1";
export typo3DatabaseUsername="root";
export typo3DatabasePassword="root";
composer ci:tests:functional

View file

@ -6,6 +6,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
## x.y.z ## x.y.z
### Added ### Added
- Run the functional tests via GitHub Actions (#55)
- Cache Composer dependencies in build (#31) - Cache Composer dependencies in build (#31)
- Add a status badge for GitHub actions (#32) - Add a status badge for GitHub actions (#32)
- Composer script for PHP code sniffer fixing (#21) - Composer script for PHP code sniffer fixing (#21)