From 96f8ed6d313585cde21f2b7a6ff5095000454b95 Mon Sep 17 00:00:00 2001 From: Stakovicz <83301974+stakovicz@users.noreply.github.com> Date: Sun, 14 Jan 2024 18:02:03 +0100 Subject: [PATCH] #1330 CI Supprimer PHP 5.6 de la matrix tests unitaires --- .github/workflows/ci.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d73d14e6..6f7688301 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - php: ["5.6", "7.0"] + php: ["7.0"] steps: - uses: actions/checkout@v2 @@ -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 @@ -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