Skip to content

Commit

Permalink
testing php 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
micheleorselli committed Feb 10, 2025
1 parent e162c85 commit acf3a81
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
php-versions: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
coverage-driver: [ 'pcov' ]

steps:
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}

phar:
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
needs: build
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -92,10 +92,10 @@ jobs:

smoke-test-phar:
needs: phar
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
strategy:
matrix:
php-versions: [ '7.2', '7.3', '7.4', '8.0', '8.1' ]
php-versions: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
coverage-driver: [ 'pcov' ]

steps:
Expand All @@ -117,7 +117,7 @@ jobs:

publish_phar:
needs: [build, smoke-test-phar]
runs-on: "ubuntu-20.04"
runs-on: "ubuntu-22.04"
if: github.event_name == 'release'
steps:
- name: "Download phar ./phparkitect-${{ github.sha }}.phar"
Expand Down
3 changes: 2 additions & 1 deletion src/CLI/TargetPhpVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class TargetPhpVersion
'8.1',
'8.2',
'8.3',
'8.4',
];

/** @var string|null */
Expand All @@ -25,7 +26,7 @@ private function __construct(string $version)
{
$versionNumbers = explode('.', $version);
if (3 <= \count($versionNumbers)) {
$version = $versionNumbers[0].'.'.$versionNumbers[1];
$version = $versionNumbers[0] . '.' . $versionNumbers[1];
}

if (!\in_array($version, self::VALID_PHP_VERSIONS)) {
Expand Down

0 comments on commit acf3a81

Please sign in to comment.