[TASK] Execute code quality checks on PHP 8.2 #92
Workflow file for this run
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: Unit- and functional tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: ['8.2', '8.2', '8.4'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up PHP Version | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2 | |
# Directory permissions for .composer are wrong, so we remove the complete directory | |
# https://github.com/actions/virtual-environments/issues/824 | |
- name: Delete .composer directory | |
run: | | |
sudo rm -rf ~/.composer | |
- name: Validate composer.json | |
run: | | |
cd .Build | |
composer validate | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.composer/cache | |
key: dependencies-composer-${{ hashFiles('composer.json') }} | |
- name: Install composer dependencies | |
run: | | |
cd .Build | |
composer install --no-progress | |
- name: Unit tests | |
run: | | |
echo "Running unit tests"; | |
.Build/vendor/bin/phpunit -c .Build/phpunit/UnitTests.xml |