diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 13da6cc..c92c841 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,7 +25,7 @@ jobs: uses: actions/cache@v1 with: path: ~/.composer/cache - key: composer + key: composer-php-7.4 - name: Install composer dependencies @@ -39,6 +39,40 @@ jobs: name: Editorconfig Linting run: composer lint:editorconfig + unittest: + runs-on: ubuntu-latest + + strategy: + max-parallel: 2 + matrix: + php-version: [7.4, 8.0, 8.1] + + 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 --no-suggest + - name: PHP Unit Testing run: composer test:php diff --git a/composer.json b/composer.json index f722fb7..e592095 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "issues": "https://github.com/sitegeist/fluid-components-linter/issues" }, "require": { - "php": ">=7.2.0 <8", + "php": ">=7.2.0", "symfony/config": "^4.4 || ^5.0", "symfony/console": "^4.4 || ^5.0", "typo3fluid/fluid": "^2.6"