Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Remove specific PHP8 targets from actions
Browse files Browse the repository at this point in the history
  • Loading branch information
janlanger committed Jan 19, 2021
1 parent fa7e5d7 commit a9ef35b
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,8 @@ jobs:
restore-keys: "php-${{ matrix.php-version }}-composer-"

- name: "Install dependencies"
if: matrix.php-version != '8.0'
run: "composer update --prefer-dist --no-interaction --no-progress --no-suggest"

- name: "Install dependencies PHP 8"
if: matrix.php-version == '8.0'
run: "composer update --prefer-dist --no-interaction --no-progress --no-suggest"

- name: "Lint"
run: "vendor/bin/phing check-phplint"
Expand Down Expand Up @@ -113,11 +109,6 @@ jobs:
restore-keys: "php-${{ matrix.php-version }}-composer-"

- name: "Install dependencies"
if: matrix.php-version != '8.0'
run: "composer update --prefer-dist --no-interaction --no-progress --no-suggest"

- name: "Install dependencies PHP 8"
if: matrix.php-version == '8.0'
run: "composer update --prefer-dist --no-interaction --no-progress --no-suggest"

- name: "PHPStan"
Expand Down Expand Up @@ -158,23 +149,11 @@ jobs:
restore-keys: "php-${{ matrix.php-version }}-composer-"

- name: "Install lowest dependencies"
if: ${{ matrix.php-version != '8.0' && matrix.dependencies == 'lowest' }}
if: ${{ matrix.dependencies == 'lowest' }}
run: "composer update --prefer-lowest --prefer-dist --no-interaction --no-progress --no-suggest"

- name: "Install highest dependencies"
if: ${{ matrix.php-version != '8.0' && matrix.dependencies == 'highest' }}
run: "composer update --prefer-dist --no-interaction --no-progress --no-suggest"

- name: "Install lowest dependencies PHP 8"
if: ${{ matrix.php-version == '8.0' && matrix.dependencies == 'lowest' }}
run: "composer update --prefer-lowest --prefer-dist --no-interaction --no-progress --no-suggest"

- name: "Require higher phpunit on PHP 8"
if: ${{ matrix.php-version == '8.0' && matrix.dependencies == 'lowest' }}
run: "composer require phpunit/phpunit:^9.3.7 --update-with-dependencies --prefer-dist --no-interaction --no-progress --no-suggest"

- name: "Install highest dependencies PHP 8"
if: ${{ matrix.php-version == '8.0' && matrix.dependencies == 'highest' }}
if: ${{ matrix.dependencies == 'highest' }}
run: "composer update --prefer-dist --no-interaction --no-progress --no-suggest"

- name: "Tests"
Expand Down

0 comments on commit a9ef35b

Please sign in to comment.