Skip to content

Commit 7506bab

Browse files
cuppettclaude
andcommitted
Update CI workflow to latest versions (#7)
* Update CI workflow to latest versions - Upgrade PHP versions to 8.3, 8.4 (latest stable) - Update Kubernetes versions to 1.31.10, 1.32.6, 1.33.2 (current supported) - Upgrade Laravel to 11.*, 12.* with corresponding testbench versions - Update minikube to 1.36.0 (latest stable) - Upgrade codecov action to v5 - Update README badges to reflect new Kubernetes versions 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Update composer dependencies for Laravel 11/12 and PHP 8.3/8.4 - Set minimum PHP version to ^8.3 - Update Laravel dependencies to support ^11.0 < /dev/null | ^12.0 - Upgrade Guzzle to ^7.0 (remove 6.x support) - Update dev dependencies: - mockery/mockery: ^1.6 - orchestra/testbench: ^9.0|^10.0 - phpunit/phpunit: ^10.0|^11.0 - vimeo/psalm: ^6.12.0 - Update composer/semver to ^3.4 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Fix PHPUnit data provider compatibility Make environmentVariableContextProvider static to support PHPUnit 10+ 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Update PHPUnit configuration for v11 compatibility - Update XML schema to vendor/phpunit/phpunit/phpunit.xsd - Use modern <source> element for coverage filtering - Set failOnWarning and failOnDeprecation to false to handle warnings gracefully - Configure proper coverage reporting with clover and text outputs 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 36693b9 commit 7506bab

File tree

5 files changed

+36
-24
lines changed

5 files changed

+36
-24
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,15 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
php: ['8.2', '8.3']
25-
kubernetes: ['1.29.8', '1.30.4', '1.31.0']
26-
laravel: ['10.*', '11.*']
24+
php: ['8.3', '8.4']
25+
kubernetes: ['1.31.10', '1.32.6', '1.33.2']
26+
laravel: ['11.*', '12.*']
2727
prefer: [prefer-lowest, prefer-stable]
2828
include:
29-
- laravel: "10.*"
30-
testbench: "8.*"
3129
- laravel: "11.*"
3230
testbench: "9.*"
33-
exclude:
34-
- laravel: "10.*"
35-
php: "8.3"
31+
- laravel: "12.*"
32+
testbench: "10.*"
3633

3734
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - K8s v${{ matrix.kubernetes }} --${{ matrix.prefer }}
3835

@@ -71,7 +68,7 @@ jobs:
7168
- uses: medyagh/setup-minikube@latest
7269
name: Setup Minikube
7370
with:
74-
minikube-version: 1.33.1
71+
minikube-version: 1.36.0
7572
driver: docker
7673
container-runtime: containerd
7774
kubernetes-version: v${{ matrix.kubernetes }}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ PHP K8s
1111
[![Total Downloads](https://poser.pugx.org/renoki-co/php-k8s/downloads)](https://packagist.org/packages/renoki-co/php-k8s)
1212
[![Monthly Downloads](https://poser.pugx.org/renoki-co/php-k8s/d/monthly)](https://packagist.org/packages/renoki-co/php-k8s)
1313

14-
![v1.29.8 K8s Version](https://img.shields.io/badge/K8s%20v1.29.8-Ready-%23326ce5?colorA=306CE8&colorB=green)
15-
![v1.30.4 K8s Version](https://img.shields.io/badge/K8s%20v1.30.4-Ready-%23326ce5?colorA=306CE8&colorB=green)
16-
![v1.31.0 K8s Version](https://img.shields.io/badge/K8s%20v1.31.0-Ready-%23326ce5?colorA=306CE8&colorB=green)
14+
![v1.31.10 K8s Version](https://img.shields.io/badge/K8s%20v1.31.10-Ready-%23326ce5?colorA=306CE8&colorB=green)
15+
![v1.32.6 K8s Version](https://img.shields.io/badge/K8s%20v1.32.6-Ready-%23326ce5?colorA=306CE8&colorB=green)
16+
![v1.33.2 K8s Version](https://img.shields.io/badge/K8s%20v1.33.2-Ready-%23326ce5?colorA=306CE8&colorB=green)
1717

1818
[![Client Capabilities](https://img.shields.io/badge/Kubernetes%20Client-Silver-blue.svg?colorB=C0C0C0&colorA=306CE8)](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/csi-new-client-library-procedure.md#client-capabilities)
1919
[![Client Support Level](https://img.shields.io/badge/Kubernetes%20Client-stable-green.svg?colorA=306CE8)](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/api-machinery/csi-new-client-library-procedure.md#client-support-level)

composer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@
2424
}
2525
],
2626
"require": {
27-
"guzzlehttp/guzzle": "^7.9",
28-
"illuminate/macroable": "^10.1|^11.0",
29-
"illuminate/support": "^10.1|^11.0",
27+
"php": "^8.3",
28+
"guzzlehttp/guzzle": "^7.0",
29+
"illuminate/macroable": "^11.0|^12.0",
30+
"illuminate/support": "^11.0|^12.0",
3031
"ratchet/pawl": "^0.4.1",
3132
"symfony/process": "^7.0",
3233
"composer/semver": "^3.4"
@@ -49,9 +50,9 @@
4950
},
5051
"require-dev": {
5152
"mockery/mockery": "^1.6",
52-
"orchestra/testbench": "^9.0",
53+
"orchestra/testbench": "^9.0|^10.0",
5354
"phpunit/phpunit": "^10.0|^11.0",
54-
"vimeo/psalm": "^5.25"
55+
"vimeo/psalm": "^6.12.0"
5556
},
5657
"config": {
5758
"sort-packages": true

phpunit.xml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,29 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" backupStaticAttributes="false" colors="true" verbose="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3-
<coverage>
4-
<include>
5-
<directory suffix=".php">src/</directory>
6-
</include>
7-
</coverage>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
bootstrap="vendor/autoload.php"
4+
backupGlobals="false"
5+
colors="true"
6+
processIsolation="false"
7+
stopOnFailure="false"
8+
failOnWarning="false"
9+
failOnDeprecation="false"
10+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd">
811
<testsuites>
912
<testsuite name="Renoki Co Test Suite">
1013
<directory>tests</directory>
1114
</testsuite>
1215
</testsuites>
16+
<source>
17+
<include>
18+
<directory suffix=".php">src</directory>
19+
</include>
20+
</source>
21+
<coverage>
22+
<report>
23+
<clover outputFile="coverage.xml"/>
24+
<text outputFile="php://stdout"/>
25+
</report>
26+
</coverage>
1327
<php>
1428
<server name="APP_ENV" value="testing"/>
1529
</php>

tests/KubeConfigTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public function test_from_environment_variable(string $context = null, string $e
220220
$this->assertSame("https://{$expectedDomain}:8443/?", $cluster->getCallableUrl('/', []));
221221
}
222222

223-
public function environmentVariableContextProvider(): iterable
223+
public static function environmentVariableContextProvider(): iterable
224224
{
225225
yield [null, 'minikube'];
226226
yield ['minikube-2', 'minikube-2'];

0 commit comments

Comments
 (0)