From 4c5c122aa65e90c21a9ddc71071e94ad8b6d33e2 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Thu, 25 Nov 2021 17:34:13 +0530 Subject: [PATCH] PHP 8.1 is now stable and marked as default version --- README.md | 8 ++++---- __tests__/install.test.ts | 2 +- __tests__/utils.test.ts | 2 +- action.yml | 2 +- src/configs/php-versions.json | 4 ++-- src/scripts/win32.ps1 | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 412990edf..a292bfef0 100644 --- a/README.md +++ b/README.md @@ -113,11 +113,11 @@ On all supported OS/Platforms the following PHP versions are supported as per th |`7.3`|`Stable`|`Security fixes only`|`GitHub-hosted`, `self-hosted`| |`7.4`|`Stable`|`Active`|`GitHub-hosted`, `self-hosted`| |`8.0`|`Stable`|`Active`|`GitHub-hosted`, `self-hosted`| -|`8.1`|`Nightly`|`In development`|`GitHub-hosted`, `self-hosted`| +|`8.1`|`Stable`|`Active`|`GitHub-hosted`, `self-hosted`| |`8.2`|`Nightly`|`In development`|`GitHub-hosted`, `self-hosted`| **Notes:** -- Specifying `8.1` and `8.2` in `php-version` input installs a nightly build of `PHP 8.1.0-dev` and `PHP 8.2.0-dev` respectively. See [nightly build setup](#nightly-build-setup) for more information. +- Specifying `8.2` in `php-version` input installs a nightly build of `PHP 8.2.0-dev`. See [nightly build setup](#nightly-build-setup) for more information. - To use JIT on `PHP 8.0` and above, refer to the [JIT configuration](#jit-configuration) section. ## :heavy_plus_sign: PHP Extension Support @@ -506,7 +506,7 @@ jobs: ### Nightly Build Setup -> Setup a nightly build of `PHP 8.1` or `PHP 8.2`. +> Setup a nightly build of `PHP 8.2`. - This version is currently in development. - Some user space extensions might not support this version currently. @@ -516,7 +516,7 @@ steps: - name: Setup nightly PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.1' + php-version: '8.2' extensions: mbstring ini-values: post_max_size=256M, max_execution_time=180 coverage: xdebug diff --git a/__tests__/install.test.ts b/__tests__/install.test.ts index e2d3fd246..23ffdb6e6 100644 --- a/__tests__/install.test.ts +++ b/__tests__/install.test.ts @@ -71,7 +71,7 @@ describe('Install', () => { ${'8.1'} | ${'darwin'} | ${''} | ${''} | ${''} | ${''} | ${'initial script bash darwin.sh 8.1 ' + __dirname} ${'7.3'} | ${'linux'} | ${''} | ${''} | ${''} | ${''} | ${'initial script bash linux.sh 7.3 ' + __dirname} ${'7.3'} | ${'linux'} | ${'a, b'} | ${'a=b'} | ${'x'} | ${'phpunit'} | ${'initial script add_tool install extensions set coverage driver edit php.ini bash linux.sh 7.3 ' + __dirname} - ${'latest'} | ${'linux'} | ${''} | ${''} | ${''} | ${''} | ${'initial script bash linux.sh 8.0 ' + __dirname} + ${'latest'} | ${'linux'} | ${''} | ${''} | ${''} | ${''} | ${'initial script bash linux.sh 8.1 ' + __dirname} ${'7.0'} | ${'win32'} | ${''} | ${''} | ${''} | ${''} | ${'initial script pwsh win32.ps1 7.0 ' + __dirname} ${'7.3'} | ${'win32'} | ${''} | ${''} | ${''} | ${''} | ${'initial script pwsh win32.ps1 7.3 ' + __dirname} ${'7.3'} | ${'win32'} | ${'a, b'} | ${'a=b'} | ${'x'} | ${''} | ${'initial script install extensions set coverage driver edit php.ini pwsh win32.ps1 7.3 ' + __dirname} diff --git a/__tests__/utils.test.ts b/__tests__/utils.test.ts index ecc589382..daeb4e463 100644 --- a/__tests__/utils.test.ts +++ b/__tests__/utils.test.ts @@ -64,7 +64,7 @@ describe('Utils tests', () => { } } ); - expect(await utils.parseVersion('latest')).toBe('8.0'); + expect(await utils.parseVersion('latest')).toBe('8.1'); expect(await utils.parseVersion('7')).toBe('7.0'); expect(await utils.parseVersion('7.4')).toBe('7.4'); expect(await utils.parseVersion('5.x')).toBe('5.6'); diff --git a/action.yml b/action.yml index f58cc1344..35916dc06 100644 --- a/action.yml +++ b/action.yml @@ -7,7 +7,7 @@ branding: inputs: php-version: description: 'Setup PHP version.' - default: '8.0' + default: '8.1' required: true extensions: description: 'Setup PHP extensions.' diff --git a/src/configs/php-versions.json b/src/configs/php-versions.json index 24742cbdb..adb1e7e30 100644 --- a/src/configs/php-versions.json +++ b/src/configs/php-versions.json @@ -1,7 +1,7 @@ { - "latest": "8.0", + "latest": "8.1", "nightly": "8.2", "5.x": "5.6", "7.x": "7.4", - "8.x": "8.0" + "8.x": "8.1" } \ No newline at end of file diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index f75b96194..06e1b7243 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -3,7 +3,7 @@ param ( [ValidateNotNull()] [ValidateLength(1, [int]::MaxValue)] [string] - $version = '8.0', + $version = '8.1', [Parameter(Position = 1, Mandatory = $true)] [ValidateNotNull()] [ValidateLength(1, [int]::MaxValue)]