Skip to content

Commit

Permalink
Misc. CI updates (#51)
Browse files Browse the repository at this point in the history
Fixes the Symfony version check, updates various actions to new major versions, and fixes PHP config to correctly install Flex
  • Loading branch information
mbabker authored Aug 20, 2021
1 parent 1ea1ed9 commit 1c1922b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,27 +38,28 @@ jobs:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: composer, flex, pcov
extensions: pcov
tools: flex

- name: Configure Symfony
run: composer config extra.symfony.require "${{ matrix.symfony }}"

- name: Prefer unstable Composer dependencies if Symfony 6.0
if: matrix.symfony == '6.0.x'
if: matrix.symfony == '6.0.*'
run: composer config prefer-stable false

- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache dependencies
uses: actions/cache@v1
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
Expand Down

0 comments on commit 1c1922b

Please sign in to comment.