Skip to content

Commit b15375f

Browse files
committed
Feature | PHP 8.5 Support
1 parent 9ed8efd commit b15375f

4 files changed

Lines changed: 27 additions & 15 deletions

File tree

.github/workflows/php-cs-fixer.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,30 @@ on:
1313
permissions:
1414
contents: write
1515

16+
concurrency:
17+
group: ${{ github.head_ref || github.ref || github.run_id }}_php_cs_fixer
18+
cancel-in-progress: true
19+
1620
jobs:
17-
php-cs-fixer:
21+
lint:
1822
runs-on: ubuntu-latest
19-
2023
steps:
21-
- name: Checkout code
22-
uses: actions/checkout@v3
23-
- name: Run PHP CS Fixer
24-
uses: docker://oskarstark/php-cs-fixer-ga
24+
- uses: actions/checkout@v4
25+
26+
- name: Setup PHP
27+
uses: shivammathur/setup-php@v2
2528
with:
26-
args: --config=.php-cs-fixer.dist.php --allow-risky=yes
27-
- name: Commit changes
28-
uses: stefanzweifel/git-auto-commit-action@v4
29+
php-version: '8.2'
30+
31+
- name: Install Dependencies
32+
run: |
33+
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
34+
35+
- name: Run PHP CS Fixer
36+
run: ./vendor/bin/php-cs-fixer fix --allow-risky=yes
37+
38+
- name: Commit Changes
39+
uses: stefanzweifel/git-auto-commit-action@v5
2940
with:
3041
commit_message: 🪄 Code Style Fixes
42+
commit_options: '--no-verify'

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ jobs:
2020
fail-fast: true
2121
matrix:
2222
os: [ ubuntu-latest, windows-latest ]
23-
php: [ 8.1, 8.2 ]
23+
php: [ 8.2, 8.3, 8.4 ]
2424
stability: [ prefer-lowest, prefer-stable ]
2525

2626
name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
2727

2828
steps:
2929
- name: Checkout code
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@v5
3131

3232
- name: Setup PHP
3333
uses: shivammathur/setup-php@v2

.phpunit.cache/test-results

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"version":"pest_4.1.3","defects":[],"times":{"P\\Tests\\Feature\\CacheTest::__pest_evaluable_a_request_with_the_HasCaching_trait_will_cache_the_response_with_a_real_request":0.131,"P\\Tests\\Feature\\CacheTest::__pest_evaluable_a_request_with_the_HasCaching_trait_will_cache_the_response":0.002,"P\\Tests\\Feature\\CacheTest::__pest_evaluable_a_request_with_the_HasCaching_trait_will_cache_the_response_with_string_body":0.001,"P\\Tests\\Feature\\CacheTest::__pest_evaluable_it_wont_cache_on_anything_other_than_GET_and_OPTIONS":0.001,"P\\Tests\\Feature\\CacheTest::__pest_evaluable_it_will_cache_post_requests_if_you_customise_the_cacheableMethods_method":0.001,"P\\Tests\\Feature\\CacheTest::__pest_evaluable_a_response_will_not_be_cached_if_the_response_was_not_2xx":0.001,"P\\Tests\\Feature\\CacheTest::__pest_evaluable_a_custom_cache_key_can_be_provided_on_the_response":0.001,"P\\Tests\\Feature\\CacheTest::__pest_evaluable_query_parameters_are_used_in_the_cache_key":0.001,"P\\Tests\\Feature\\CacheTest::__pest_evaluable_body_can_be_used_in_the_cache_key":0.001,"P\\Tests\\Feature\\CacheTest::__pest_evaluable_you_will_not_receive_a_cached_response_if_the_response_has_expired":3.007,"P\\Tests\\Feature\\CacheTest::__pest_evaluable_you_can_define_a_cache_on_the_connector_and_it_returns_a_cached_response":0.003,"P\\Tests\\Feature\\CacheTest::__pest_evaluable_if_a_request_has_cache_configuration_then_it_will_take_priority_over_the_connectors":0.004,"P\\Tests\\Feature\\CacheTest::__pest_evaluable_you_can_disable_the_cache":0.003,"P\\Tests\\Feature\\CacheTest::__pest_evaluable_cache_can_be_invalidated":0.003,"P\\Tests\\Feature\\CacheTest::__pest_evaluable_it_throws_an_exception_if_you_use_the_HasCaching_trait_without_the_Cacheable_interface":0.002,"P\\Tests\\Feature\\Laravel\\LaravelCacheDriverTest::__pest_evaluable_it_will_return_a_cached_response":0.021,"P\\Tests\\Feature\\PsrCacheDriverTest::__pest_evaluable_it_will_return_a_cached_response":0.001}}

composer.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,14 @@
1717
],
1818
"minimum-stability": "stable",
1919
"require": {
20-
"php": "^8.1",
20+
"php": "^8.2",
2121
"saloonphp/saloon": "^3.0"
2222
},
2323
"require-dev": {
2424
"friendsofphp/php-cs-fixer": "^3.13",
25-
"pestphp/pest": "^2.3",
26-
"spatie/ray": "^1.34.2",
25+
"pestphp/pest": "^2.3 || ^4.0",
2726
"league/flysystem": "^3.12.2",
28-
"orchestra/testbench": "^8.0",
27+
"orchestra/testbench": "^9.0 || ^10.0",
2928
"psr/simple-cache": "^3.0"
3029
},
3130
"scripts": {

0 commit comments

Comments
 (0)