From 5c150cbcb76f87a5a887cf353ef6fd944fc3f7aa Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 9 Dec 2022 02:30:29 +0100 Subject: [PATCH 1/3] GH Actions: update PHP versions in workflows PHP 8.2 and 8.3 have been released quite a while ago and PHP 8.4 is expected towards end of November, so adding PHP 8.3 and 8.4 to the matrix and no longer allowing PHP 8.2 or 8.3 to fail the build. Builds against PHP 8.4 are still allowed to fail for now. --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 963296d..8406b36 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,9 +37,9 @@ jobs: strategy: matrix: operating-system: ['ubuntu-latest'] - php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] + php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] - continue-on-error: ${{ matrix.php-versions == '8.2' }} + continue-on-error: ${{ matrix.php-versions == '8.4' }} steps: - name: Checkout @@ -56,12 +56,12 @@ jobs: - name: Modernize dependencies run: composer require --dev --no-update "phpunit/phpunit:>=4" - - name: Install Composer dependencies (PHP < 8.2) - if: ${{ matrix.php-versions != '8.2' }} + - name: Install Composer dependencies (PHP < 8.4) + if: ${{ matrix.php-versions != '8.4' }} uses: "ramsey/composer-install@v2" - - name: Install Composer dependencies - ignore-platform-reqs (PHP 8.2) - if: ${{ matrix.php-versions == '8.2' }} + - name: Install Composer dependencies - ignore-platform-reqs (PHP 8.4) + if: ${{ matrix.php-versions == '8.4' }} uses: "ramsey/composer-install@v2" with: composer-options: --ignore-platform-reqs From 511228119136954e7cfeaaecb6c6f2aadb9f8de8 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 9 Sep 2024 19:31:57 +0200 Subject: [PATCH 2/3] GH Actions: update the actions/checkout action runner The v3 version still uses Node 16, while GHA will stop supporting that soonish. Using v4 fixes that. --- .github/workflows/ci.yml | 4 ++-- .github/workflows/psalm.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8406b36..8c7eb8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: php-versions: ['5.3', '5.4', '5.5', '5.6', '7.0'] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -43,7 +43,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index 8493312..599a941 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -12,7 +12,7 @@ jobs: php-versions: ['7.4'] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 From 0d047e6567289f895c17a315f705454111d9615f Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 9 Sep 2024 21:06:33 +0200 Subject: [PATCH 3/3] GH Actions: update the ramsey/composer-install action runner The v2 version still uses Node 16, while GHA will stop supporting that soonish. Using v3 fixes that. --- .github/workflows/ci.yml | 6 +++--- .github/workflows/psalm.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c7eb8e..297cebb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: run: composer self-update --1 - name: Install Composer dependencies - uses: "ramsey/composer-install@v2" + uses: "ramsey/composer-install@v3" - name: PHPUnit tests run: vendor/bin/phpunit @@ -58,11 +58,11 @@ jobs: - name: Install Composer dependencies (PHP < 8.4) if: ${{ matrix.php-versions != '8.4' }} - uses: "ramsey/composer-install@v2" + uses: "ramsey/composer-install@v3" - name: Install Composer dependencies - ignore-platform-reqs (PHP 8.4) if: ${{ matrix.php-versions == '8.4' }} - uses: "ramsey/composer-install@v2" + uses: "ramsey/composer-install@v3" with: composer-options: --ignore-platform-reqs diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index 599a941..85725b5 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -22,7 +22,7 @@ jobs: coverage: none - name: Install Composer dependencies - uses: "ramsey/composer-install@v2" + uses: "ramsey/composer-install@v3" with: composer-options: --no-dev