Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr>
  • Loading branch information
goetas and greg0ire authored Nov 28, 2020
1 parent c8cc9cf commit dd5f17d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:

strategy:
matrix:
composer: [1, 2]
php-version:
- "7.2"
- "7.3"
Expand Down Expand Up @@ -70,12 +69,12 @@ jobs:
uses: "actions/cache@v2"
with:
path: "~/.composer/cache"
key: "php-${{ matrix.php-version }}-composer-${{ matrix.composer }}-locked-${{ hashFiles('composer.lock') }}"
key: "php-${{ matrix.php-version }}-composer-${{ matrix.deps }}-locked-${{ hashFiles('composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-composer-locked-"

- name: "Get the right composer"
run: "composer self-update --${{ matrix.composer }}"
if: "${{ matrix.composer }}"
- name: "Downgrade Composer"
run: "composer self-update --1"
if: "${{ matrix.deps == 'low' }}"

- name: "Install dependencies with composer"
run: "composer update --no-interaction --prefer-dist --no-progress"
Expand Down

0 comments on commit dd5f17d

Please sign in to comment.