Skip to content

Commit

Permalink
afup#1330 CI passer les tests en PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
stakovicz committed Jan 14, 2024
1 parent 070bc40 commit 4404dd0
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ["5.6", "7.0"]
php: ["7.0", "8.0"]

steps:
- uses: actions/checkout@v2
Expand All @@ -21,20 +21,17 @@ jobs:
with:
php-version: '${{ matrix.php }}'

- name: Composer - Get Cache Directory
- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v1
id: cache-composer
- uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: composer-php.${{ matrix.php }}-${{ github.sha }}
restore-keys: composer-php.${{ matrix.php }}-

- name: Composer - Create cache directory
run: mkdir -p /home/runner/.composer/cache
if: steps.cache-composer.outputs.cache-hit != 'true'
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Composer install
run: composer install --no-scripts
Expand All @@ -52,7 +49,7 @@ jobs:
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: '5.6'
php-version: '7.0'

- name: Get Composer Cache Directory
id: composer-cache
Expand Down

0 comments on commit 4404dd0

Please sign in to comment.