Skip to content

Commit 58d8bc7

Browse files
authored
PHP 8.5 Compatibility (#30)
* chore: add PHP 8.5 to tests workflow and bump nutgram to 4.39.2 * chore: bump pestphp/pest version to ^4.0 * chore: drop pest versions ^1.0|^2.0 * Revert "chore: drop pest versions ^1.0|^2.0" This reverts commit f3448bd. * chore: remove pest dependencies from PHP workflow configuration * chore: update test coverage upload process in PHP workflow * chore: update badge links for code coverage and maintainability in README
1 parent 3ac2156 commit 58d8bc7

File tree

3 files changed

+17
-23
lines changed

3 files changed

+17
-23
lines changed

.github/workflows/php.yml

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,21 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
php: [ 8.2, 8.3, 8.4 ]
12+
php: [ 8.2, 8.3, 8.4, 8.5 ]
1313
laravel: [ 9.*, 10.*, 11.*, 12.* ]
1414
include:
1515
- laravel: 12.*
1616
testbench: 10.*
17-
termwind: 2.*
18-
pest: 3.*
1917
- laravel: 11.*
2018
testbench: 9.*
21-
termwind: 2.*
22-
pest: 2.*
2319
- laravel: 10.*
2420
testbench: 8.*
25-
termwind: 1.*
26-
pest: 1.*
2721
- laravel: 9.*
2822
testbench: 7.*
29-
termwind: 1.*
30-
pest: 1.*
3123

3224
name: PHP ${{ matrix.php }} + Laravel ${{ matrix.laravel }}
3325
steps:
34-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v6
3527

3628
- name: Setup PHP
3729
uses: shivammathur/setup-php@v2
@@ -44,8 +36,8 @@ jobs:
4436

4537
- name: Install dependencies
4638
run: |
47-
composer require "laravel/framework:${{ matrix.laravel }}" "nunomaduro/termwind:${{ matrix.termwind }}" --no-interaction --no-update
48-
composer require "orchestra/testbench:${{ matrix.testbench }}" "pestphp/pest:${{ matrix.pest }}" --dev --no-interaction --no-update
39+
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
40+
composer require "orchestra/testbench:${{ matrix.testbench }}" --dev --no-interaction --no-update
4941
composer update --prefer-dist --no-interaction
5042
5143
- name: Run test suite
@@ -55,7 +47,7 @@ jobs:
5547
needs: [ tests ]
5648
runs-on: ubuntu-latest
5749
steps:
58-
- uses: actions/checkout@v4
50+
- uses: actions/checkout@v6
5951
- name: Setup PHP
6052
uses: shivammathur/setup-php@v2
6153
with:
@@ -79,17 +71,19 @@ jobs:
7971
run: composer install --prefer-dist --no-interaction --no-suggest
8072

8173
- name: Run test suite
82-
uses: paambaati/codeclimate-action@v9
83-
env:
84-
CC_TEST_REPORTER_ID: ${{ secrets.CC_REPORTER_ID }}
74+
run: composer run-script test-coverage
75+
76+
- name: Upload Coverage
77+
uses: qltysh/qlty-action/coverage@v2
8578
with:
86-
coverageCommand: composer run-script test-coverage
87-
coverageLocations: ${{github.workspace}}/coverage.xml:clover
79+
token: ${{ secrets.COVERAGE_TOKEN }}
80+
files: ${{github.workspace}}/coverage.xml
81+
format: clover
8882
static-analysis:
8983
runs-on: ubuntu-latest
9084
name: Psalm
9185
steps:
92-
- uses: actions/checkout@v4
86+
- uses: actions/checkout@v6
9387

9488
- name: Setup PHP
9589
uses: shivammathur/setup-php@v2

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
[![Nutgram](https://img.shields.io/packagist/dependency-v/nutgram/laravel/nutgram/nutgram?logo=telegram&label=nutgram)](https://github.com/nutgram/nutgram)
99

1010
![Tests](https://img.shields.io/github/actions/workflow/status/nutgram/laravel/php.yml?label=Test%20Suite&logo=github)
11-
[![Test Coverage](https://api.codeclimate.com/v1/badges/feaa33a8d1431d16998d/test_coverage)](https://codeclimate.com/github/nutgram/laravel/test_coverage)
12-
[![Maintainability](https://api.codeclimate.com/v1/badges/feaa33a8d1431d16998d/maintainability)](https://codeclimate.com/github/nutgram/laravel/maintainability)
11+
[![Code Coverage](https://qlty.sh/gh/nutgram/projects/laravel/coverage.svg)](https://qlty.sh/gh/nutgram/projects/laravel)
12+
[![Maintainability](https://qlty.sh/gh/nutgram/projects/laravel/maintainability.svg)](https://qlty.sh/gh/nutgram/projects/laravel)
1313

1414
[Nutgram](https://github.com/nutgram/nutgram) Package for Laravel 9.0+.
1515

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
"require": {
3131
"php": "^8.2",
3232
"nunomaduro/termwind": "^1.0|^2.0",
33-
"nutgram/nutgram": "^4.20"
33+
"nutgram/nutgram": "^4.39.2"
3434
},
3535
"require-dev": {
3636
"illuminate/testing": "^9.0|^10.0|^11.0|^12.0",
3737
"orchestra/testbench": "^7.0|^8.0|^9.0|^10.0",
38-
"pestphp/pest": "^1.1|^2.0|^3.0",
38+
"pestphp/pest": "^1.1|^2.0|^3.0|^4.0",
3939
"vimeo/psalm": "^6.0"
4040
},
4141
"autoload": {

0 commit comments

Comments
 (0)