Skip to content

Commit

Permalink
fix: drop support for php 8.0 and earlier, add testing for php 8.3
Browse files Browse the repository at this point in the history
also update phpunit
  • Loading branch information
jrmfg committed Sep 20, 2024
1 parent 7d1ba36 commit 1926fae
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/buildpack-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
permissions: read-all

jobs:
php74-buildpack-test:
php81-buildpack-test:
if: github.event.pull_request.head.repo.full_name == github.repository
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@main
with:
Expand All @@ -21,9 +21,9 @@ jobs:
cloudevent-builder-target: 'declarativeCloudEventFunc'
prerun: 'tests/conformance/prerun.sh ${{ github.sha }}'
output-file: 'vendor/bin/function_output.json'
builder-runtime: 'php74'
builder-runtime-version: '">=7.4,<7.5"'
php81-buildpack-test:
builder-runtime: 'php81'
builder-runtime-version: '">=8.1,<8.2"'
php82-buildpack-test:
if: github.event.pull_request.head.repo.full_name == github.repository
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@main
with:
Expand All @@ -33,8 +33,8 @@ jobs:
cloudevent-builder-target: 'declarativeCloudEventFunc'
prerun: 'tests/conformance/prerun.sh ${{ github.sha }}'
output-file: 'vendor/bin/function_output.json'
builder-runtime: 'php81'
builder-runtime-version: '">=8.1,<8.2"'
builder-runtime: 'php82'
builder-runtime-version: '">=8.2,<8.3"'
php82-buildpack-test:
if: github.event.pull_request.head.repo.full_name == github.repository
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@main
Expand All @@ -45,5 +45,5 @@ jobs:
cloudevent-builder-target: 'declarativeCloudEventFunc'
prerun: 'tests/conformance/prerun.sh ${{ github.sha }}'
output-file: 'vendor/bin/function_output.json'
builder-runtime: 'php82'
builder-runtime-version: '">=8.2,<8.3"'
builder-runtime: 'php83'
builder-runtime-version: '">=8.3,<8.4"'
2 changes: 1 addition & 1 deletion .github/workflows/conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ '7.4','8.0','8.1','8.2' ]
php-version: [ '8.1','8.2','8.3' ]
name: PHP ${{ matrix.php-version }} Conformance Test
steps:
- name: Harden Runner
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: [ '7.4','8.0','8.1','8.2' ]
php-versions: [ '8.1','8.2','8.3' ]
name: PHP ${{ matrix.php-versions }} Unit Test
steps:
- name: Harden Runner
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Google Cloud Functions Framework for PHP",
"license": "Apache-2.0",
"require": {
"php": ">=7.4",
"php": ">=8.1",
"guzzlehttp/psr7": "^1.7|^2.0",
"psr/http-message": "^2.0",
"cloudevents/sdk-php": "^1.0"
Expand All @@ -17,7 +17,7 @@
}
},
"require-dev": {
"phpunit/phpunit": "^7.5|^8.0",
"phpunit/phpunit": "^10.5|^11.3",
"guzzlehttp/guzzle": "^7.2"
},
"autoload-dev": {
Expand Down

0 comments on commit 1926fae

Please sign in to comment.