From 775faf4dcc4e34aa70ac6200a7c06816af7ef984 Mon Sep 17 00:00:00 2001 From: Flavio Heleno Date: Tue, 23 Apr 2024 09:44:48 -0300 Subject: [PATCH] Update continuous integration workflow dependencies --- .github/workflows/continuous-integration.yml | 32 ++++++++------------ 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 4d2df506..16a20180 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -24,43 +24,37 @@ jobs: - '8.1' - '8.2' - '8.3' - dependency-version: [prefer-lowest, prefer-stable] + dependency-versions: [lowest, highest] experimental: [false] include: - php-version: '8.4' - dependency-version: prefer-lowest + dependency-versions: lowest experimental: true + composer-options: --ignore-platform-reqs - php-version: '8.4' - dependency-version: prefer-stable + dependency-versions: highest experimental: true + composer-options: --ignore-platform-reqs steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - name: Repository checkout + uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - name: Setup PHP with PECL extension - uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2.29.0 + uses: shivammathur/setup-php@efffd0e4f2504f936fcfe3b69293d31ce0e2fd7a # v2.30.3 with: php-version: ${{ matrix.php-version }} tools: composer:v2 coverage: pcov - name: Validate composer.json and composer.lock - run: composer validate + run: composer validate --strict - - name: Get composer cache directory - id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" - - - name: Cache Composer packages - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 + - name: Install dependencies + uses: ramsey/composer-install@57532f8be5bda426838819c5ee9afb8af389d51a # v3.0.0 with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-php-${{ matrix.php-version }}-composer-${{ matrix.prefer }}-${{ hashFiles('**/composer.json') }} - restore-keys: ${{ runner.os }}-php-${{ matrix.php-version }}-composer-${{ matrix.prefer }} - - - name: Install dependencies (PHP 8) - if: steps.composer-cache.outputs.cache-hit != 'true' && matrix.php-version >= 8 - run: composer update --${{ matrix.dependency-version }} --ignore-platform-req=php --no-progress --no-interaction + dependency-versions: ${{ matrix.dependency-versions }} + composer-options: ${{ matrix.composer-options }} - name: Pull the docker image used by the tests. run: docker pull busybox:latest