allow fluid v4 #52
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 and unit testing | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
- | |
uses: actions/checkout@v2 | |
- | |
name: Validate composer.json | |
run: composer validate | |
- | |
name: Cache composer dependencies | |
uses: actions/cache@v1 | |
with: | |
path: ~/.composer/cache | |
key: composer-php-8.2 | |
- | |
name: Install composer dependencies | |
run: composer install --prefer-dist --no-progress | |
- | |
name: PHP Linting | |
run: composer lint:php | |
- | |
name: Editorconfig Linting | |
run: composer lint:editorconfig | |
unittest: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 2 | |
matrix: | |
php-version: [8.3, 8.2] | |
name: Unit (PHP ${{ matrix.php-version }}) | |
steps: | |
- | |
name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
- | |
uses: actions/checkout@v2 | |
- | |
name: Validate composer.json | |
run: composer validate | |
- | |
name: Cache composer dependencies | |
uses: actions/cache@v1 | |
with: | |
path: ~/.composer/cache | |
key: composer-php-${{ matrix.php-version }} | |
- | |
name: Install composer dependencies | |
run: composer install --prefer-dist --no-progress | |
- | |
name: PHP Unit Testing | |
run: composer test:php |