[TASK] update github testing and only use TYPO3 13 and PHP 8.2 #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: [push, pull_request] | |
jobs: | |
lint: | |
name: Source code linting | |
runs-on: ubuntu-latest | |
steps: | |
- | |
uses: actions/checkout@v4 | |
- | |
name: Set up Docker Compose | |
run: | | |
docker compose version || { | |
echo "Docker Compose not found, installing..." | |
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
docker compose version | |
} | |
- | |
name: Validate composer.json | |
run: Build/Scripts/runTests.sh -s composerValidate | |
- | |
name: Cache composer dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.composer/cache | |
key: composer | |
- | |
name: Install composer dependencies | |
run: Build/Scripts/runTests.sh -s composerInstall | |
- | |
name: PHP Linting | |
run: Build/Scripts/runTests.sh -s lintPhp | |
- | |
name: Editorconfig Linting | |
run: Build/Scripts/runTests.sh -s lintEditorconfig | |
unittest: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 2 | |
matrix: | |
php-versions: ['8.2'] | |
typo3-versions: [13] | |
name: Unit (PHP ${{ matrix.php-versions }}, TYPO3 ${{ matrix.typo3-versions }}) | |
steps: | |
- | |
uses: actions/checkout@v4 | |
- | |
name: Set up Docker Compose | |
run: | | |
docker compose version || { | |
echo "Docker Compose not found, installing..." | |
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
docker compose version | |
} | |
- | |
name: Validate composer.json | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php-versions }} -t ${{ matrix.typo3-versions }} -s composerValidate | |
- | |
name: Cache composer dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.composer/cache | |
key: php-${{ matrix.php-versions }}-typo3-${{ matrix.typo3-versions }} | |
- | |
name: Install composer dependencies | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php-versions }} -t ${{ matrix.typo3-versions }} -s composerInstall | |
- | |
name: Automated Unit Testing | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php-versions }} -t ${{ matrix.typo3-versions }} -s unit | |
functionaltest: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 2 | |
matrix: | |
php-versions: ['8.2'] | |
typo3-versions: [13] | |
name: Functional (PHP ${{ matrix.php-versions }}, TYPO3 ${{ matrix.typo3-versions }}) | |
steps: | |
- | |
uses: actions/checkout@v4 | |
- | |
name: Set up Docker Compose | |
run: | | |
docker compose version || { | |
echo "Docker Compose not found, installing..." | |
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
docker compose version | |
} | |
- | |
name: Validate composer.json | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php-versions }} -t ${{ matrix.typo3-versions }} -s composerValidate | |
- | |
name: Cache composer dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.composer/cache | |
key: php-${{ matrix.php-versions }}-typo3-${{ matrix.typo3-versions }} | |
- | |
name: Install composer dependencies | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php-versions }} -t ${{ matrix.typo3-versions }} -s composerInstall | |
- | |
name: Automated Functional Testing | |
run: Build/Scripts/runTests.sh -p ${{ matrix.php-versions }} -t ${{ matrix.typo3-versions }} -s functional |