From 7eb360049df959c7df4f909e91da2076e1ed2e28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Mon, 8 Apr 2024 10:27:38 +0200 Subject: [PATCH 1/2] Run tests with PHP 8.4 --- .github/workflows/build-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index c6a84e120..28b4d2c22 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -30,7 +30,11 @@ jobs: - php: "8.1" laravel: "10.*" mongodb: "5.0" - mode: "low-deps" + mode: "--prefer-lowest" + - php: "8.4" + laravel: "11.*" + mongodb: "7.0" + mode: "--ignore-platform-reqs" exclude: - php: "8.1" laravel: "11.*" @@ -80,7 +84,7 @@ jobs: restore-keys: "${{ matrix.os }}-composer-" - name: "Install dependencies" - run: composer update --no-interaction $([[ "${{ matrix.mode }}" == low-deps ]] && echo ' --prefer-lowest') + run: composer update --no-interaction ${{ matrix.mode }} - name: "Run tests" run: "./vendor/bin/phpunit --coverage-clover coverage.xml" env: From 7e8ab4afdaefd60ba85ae741c3969046b67d1f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Wed, 10 Apr 2024 15:04:18 +0200 Subject: [PATCH 2/2] Ignore only PHP requirements for related packages --- .github/workflows/build-ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index 28b4d2c22..45833d579 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -30,11 +30,13 @@ jobs: - php: "8.1" laravel: "10.*" mongodb: "5.0" - mode: "--prefer-lowest" + mode: "low-deps" + os: "ubuntu-latest" - php: "8.4" laravel: "11.*" mongodb: "7.0" - mode: "--ignore-platform-reqs" + mode: "ignore-php-req" + os: "ubuntu-latest" exclude: - php: "8.1" laravel: "11.*" @@ -84,7 +86,10 @@ jobs: restore-keys: "${{ matrix.os }}-composer-" - name: "Install dependencies" - run: composer update --no-interaction ${{ matrix.mode }} + run: | + composer update --no-interaction \ + $([[ "${{ matrix.mode }}" == low-deps ]] && echo ' --prefer-lowest') \ + $([[ "${{ matrix.mode }}" == ignore-php-req ]] && echo ' --ignore-platform-req=php+') - name: "Run tests" run: "./vendor/bin/phpunit --coverage-clover coverage.xml" env: