mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-22 13:56:13 +01:00

[TASK] Move unit test run to GitHub actions (#38)

This commit is contained in:
Andreas Wolf 2019-12-07 19:00:51 +01:00 committed by Oliver Klee
parent cef4baddbc
commit 9be1c23798
3 changed files with 41 additions and 5 deletions

View file

@ -69,3 +69,43 @@ jobs:
- name: Run PHP Code Sniffer - name: Run PHP Code Sniffer
run: composer ci:php:sniff run: composer ci:php:sniff
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
strategy:
matrix:
typo3-version:
- "^9.5"
#- "^10.2"
php-version:
- 7.2
- 7.3
- 7.4
steps:
- name: Checkout
uses: actions/checkout@v1
- 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 Composer dependencies
run: composer install --no-progress
- name: Run unit tests
run: composer ci:tests:unit

View file

@ -32,11 +32,6 @@ install:
git checkout .; git checkout .;
script: script:
- >
echo;
echo "Running the unit tests";
composer ci:tests:unit;
- > - >
echo; echo;
echo "Running the functional tests"; echo "Running the functional tests";

View file

@ -18,6 +18,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
- Composer script for PHP linting - Composer script for PHP linting
### Changed ### Changed
- Run unit tests with GitHub actions (#37)
- Switch from PSR-2 to PSR-12 (#3, #35) - Switch from PSR-2 to PSR-12 (#3, #35)
- Move TypoScript linting to GitHub actions (#14) - Move TypoScript linting to GitHub actions (#14)
- Move PHP code sniffing to GitHub actions (#13) - Move PHP code sniffing to GitHub actions (#13)