Skip to content

Commit 775faf4

Browse files
committed
Update continuous integration workflow dependencies
1 parent 9cb6495 commit 775faf4

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -24,43 +24,37 @@ jobs:
2424
- '8.1'
2525
- '8.2'
2626
- '8.3'
27-
dependency-version: [prefer-lowest, prefer-stable]
27+
dependency-versions: [lowest, highest]
2828
experimental: [false]
2929
include:
3030
- php-version: '8.4'
31-
dependency-version: prefer-lowest
31+
dependency-versions: lowest
3232
experimental: true
33+
composer-options: --ignore-platform-reqs
3334
- php-version: '8.4'
34-
dependency-version: prefer-stable
35+
dependency-versions: highest
3536
experimental: true
37+
composer-options: --ignore-platform-reqs
3638

3739
steps:
38-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
40+
- name: Repository checkout
41+
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
3942

4043
- name: Setup PHP with PECL extension
41-
uses: shivammathur/setup-php@6d7209f44a25a59e904b1ee9f3b0c33ab2cd888d # v2.29.0
44+
uses: shivammathur/setup-php@efffd0e4f2504f936fcfe3b69293d31ce0e2fd7a # v2.30.3
4245
with:
4346
php-version: ${{ matrix.php-version }}
4447
tools: composer:v2
4548
coverage: pcov
4649

4750
- name: Validate composer.json and composer.lock
48-
run: composer validate
51+
run: composer validate --strict
4952

50-
- name: Get composer cache directory
51-
id: composer-cache
52-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
53-
54-
- name: Cache Composer packages
55-
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
53+
- name: Install dependencies
54+
uses: ramsey/composer-install@57532f8be5bda426838819c5ee9afb8af389d51a # v3.0.0
5655
with:
57-
path: ${{ steps.composer-cache.outputs.dir }}
58-
key: ${{ runner.os }}-php-${{ matrix.php-version }}-composer-${{ matrix.prefer }}-${{ hashFiles('**/composer.json') }}
59-
restore-keys: ${{ runner.os }}-php-${{ matrix.php-version }}-composer-${{ matrix.prefer }}
60-
61-
- name: Install dependencies (PHP 8)
62-
if: steps.composer-cache.outputs.cache-hit != 'true' && matrix.php-version >= 8
63-
run: composer update --${{ matrix.dependency-version }} --ignore-platform-req=php --no-progress --no-interaction
56+
dependency-versions: ${{ matrix.dependency-versions }}
57+
composer-options: ${{ matrix.composer-options }}
6458

6559
- name: Pull the docker image used by the tests.
6660
run: docker pull busybox:latest

0 commit comments

Comments
 (0)