|
@@ -52,9 +52,6 @@ jobs:
|
|
|
php-version:
|
|
php-version:
|
|
|
- "7.4"
|
|
- "7.4"
|
|
|
- "8.0"
|
|
- "8.0"
|
|
|
- dependencies:
|
|
|
|
|
- - lowest
|
|
|
|
|
- - highest
|
|
|
|
|
|
|
|
|
|
steps:
|
|
steps:
|
|
|
- name: "Configure git to avoid issues with line endings"
|
|
- name: "Configure git to avoid issues with line endings"
|
|
@@ -85,15 +82,10 @@ jobs:
|
|
|
uses: actions/cache@v2
|
|
uses: actions/cache@v2
|
|
|
with:
|
|
with:
|
|
|
path: ${{ env.COMPOSER_CACHE_DIR }}
|
|
path: ${{ env.COMPOSER_CACHE_DIR }}
|
|
|
- key: php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }}
|
|
|
|
|
- restore-keys: php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-
|
|
|
|
|
|
|
+ key: php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
|
|
|
|
|
+ restore-keys: php${{ matrix.php-version }}-composer-
|
|
|
|
|
|
|
|
- - name: "Install lowest dependencies with composer"
|
|
|
|
|
- if: matrix.dependencies == 'lowest'
|
|
|
|
|
- run: composer update --no-ansi --no-interaction --no-progress --no-suggest --prefer-lowest
|
|
|
|
|
-
|
|
|
|
|
- - name: "Install highest dependencies with composer"
|
|
|
|
|
- if: matrix.dependencies == 'highest'
|
|
|
|
|
|
|
+ - name: "Install dependencies with composer"
|
|
|
run: composer update --no-ansi --no-interaction --no-progress --no-suggest
|
|
run: composer update --no-ansi --no-interaction --no-progress --no-suggest
|
|
|
|
|
|
|
|
- name: "Run tests with phpunit"
|
|
- name: "Run tests with phpunit"
|