Skip to content

Commit 1926fae

Browse files
committed
fix: drop support for php 8.0 and earlier, add testing for php 8.3
also update phpunit
1 parent 7d1ba36 commit 1926fae

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

.github/workflows/buildpack-integration-test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
permissions: read-all
1212

1313
jobs:
14-
php74-buildpack-test:
14+
php81-buildpack-test:
1515
if: github.event.pull_request.head.repo.full_name == github.repository
1616
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@main
1717
with:
@@ -21,9 +21,9 @@ jobs:
2121
cloudevent-builder-target: 'declarativeCloudEventFunc'
2222
prerun: 'tests/conformance/prerun.sh ${{ github.sha }}'
2323
output-file: 'vendor/bin/function_output.json'
24-
builder-runtime: 'php74'
25-
builder-runtime-version: '">=7.4,<7.5"'
26-
php81-buildpack-test:
24+
builder-runtime: 'php81'
25+
builder-runtime-version: '">=8.1,<8.2"'
26+
php82-buildpack-test:
2727
if: github.event.pull_request.head.repo.full_name == github.repository
2828
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@main
2929
with:
@@ -33,8 +33,8 @@ jobs:
3333
cloudevent-builder-target: 'declarativeCloudEventFunc'
3434
prerun: 'tests/conformance/prerun.sh ${{ github.sha }}'
3535
output-file: 'vendor/bin/function_output.json'
36-
builder-runtime: 'php81'
37-
builder-runtime-version: '">=8.1,<8.2"'
36+
builder-runtime: 'php82'
37+
builder-runtime-version: '">=8.2,<8.3"'
3838
php82-buildpack-test:
3939
if: github.event.pull_request.head.repo.full_name == github.repository
4040
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@main
@@ -45,5 +45,5 @@ jobs:
4545
cloudevent-builder-target: 'declarativeCloudEventFunc'
4646
prerun: 'tests/conformance/prerun.sh ${{ github.sha }}'
4747
output-file: 'vendor/bin/function_output.json'
48-
builder-runtime: 'php82'
49-
builder-runtime-version: '">=8.2,<8.3"'
48+
builder-runtime: 'php83'
49+
builder-runtime-version: '">=8.3,<8.4"'

.github/workflows/conformance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
php-version: [ '7.4','8.0','8.1','8.2' ]
17+
php-version: [ '8.1','8.2','8.3' ]
1818
name: PHP ${{ matrix.php-version }} Conformance Test
1919
steps:
2020
- name: Harden Runner

.github/workflows/unit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
operating-system: [ubuntu-latest]
16-
php-versions: [ '7.4','8.0','8.1','8.2' ]
16+
php-versions: [ '8.1','8.2','8.3' ]
1717
name: PHP ${{ matrix.php-versions }} Unit Test
1818
steps:
1919
- name: Harden Runner

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Google Cloud Functions Framework for PHP",
44
"license": "Apache-2.0",
55
"require": {
6-
"php": ">=7.4",
6+
"php": ">=8.1",
77
"guzzlehttp/psr7": "^1.7|^2.0",
88
"psr/http-message": "^2.0",
99
"cloudevents/sdk-php": "^1.0"
@@ -17,7 +17,7 @@
1717
}
1818
},
1919
"require-dev": {
20-
"phpunit/phpunit": "^7.5|^8.0",
20+
"phpunit/phpunit": "^10.5|^11.3",
2121
"guzzlehttp/guzzle": "^7.2"
2222
},
2323
"autoload-dev": {

0 commit comments

Comments
 (0)