Skip to content

Commit a69413d

Browse files
chore: Test with PHP 8.5 (#701)
* chore: Test with PHP 8.5 * Exclude L11 from PHP 8.5 * Update github actions * fix
1 parent ec643d7 commit a69413d

File tree

5 files changed

+23
-14
lines changed

5 files changed

+23
-14
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ jobs:
88

99
steps:
1010
- name: Checkout code
11-
uses: actions/checkout@v3
11+
uses: actions/checkout@v6
1212
with:
1313
ref: ${{ github.head_ref }}
1414

1515
- name: Fix PHP code style issues
16-
uses: aglipanci/laravel-pint-action@0.1.0
16+
uses: aglipanci/laravel-pint-action@v2
1717

1818
- name: Commit changes
19-
uses: stefanzweifel/git-auto-commit-action@v4
19+
uses: stefanzweifel/git-auto-commit-action@v7
2020
with:
2121
commit_message: Fix styling

.github/workflows/psalm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jobs:
88
name: psalm
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v6
1212

1313
- name: Setup PHP
1414
uses: shivammathur/setup-php@v2
1515
with:
16-
php-version: '8.3'
16+
php-version: '8.4'
1717
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
1818
coverage: none
1919

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717

1818
steps:
1919
- name: Checkout code
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v6
2121
with:
2222
fetch-depth: 0
2323

2424
- name: Setup PHP
2525
uses: shivammathur/setup-php@v2
2626
with:
27-
php-version: 8.3
27+
php-version: 8.4
2828
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
2929
coverage: none
3030

@@ -90,7 +90,7 @@ jobs:
9090
echo "EOF" >> $GITHUB_OUTPUT
9191
9292
- name: Create Release
93-
uses: softprops/action-gh-release@v1
93+
uses: softprops/action-gh-release@v2
9494
env:
9595
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9696
with:

.github/workflows/tests.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,28 @@ on: [push, pull_request]
55
jobs:
66
test:
77
runs-on: ${{ matrix.os }}
8-
timeout-minutes: 30
8+
timeout-minutes: 5
99
strategy:
1010
fail-fast: false
1111
matrix:
1212
os: [ubuntu-latest, windows-latest]
13-
php: [8.3, 8.4]
14-
laravel: [11.*, 12.*]
13+
php: [8.5, 8.4, 8.3]
14+
laravel: [12.*, 11.*]
1515
stability: [prefer-stable]
16+
exclude:
17+
- php: 8.5
18+
laravel: 11.*
1619
include:
17-
- laravel: 11.*
18-
testbench: 9.*
1920
- laravel: 12.*
2021
testbench: 10.*
22+
- laravel: 11.*
23+
testbench: 9.*
2124

2225
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2326

2427
steps:
2528
- name: Checkout code
26-
uses: actions/checkout@v4
29+
uses: actions/checkout@v6
2730

2831
- name: Setup PHP
2932
uses: shivammathur/setup-php@v2
@@ -50,3 +53,8 @@ jobs:
5053

5154
- name: Execute tests
5255
run: composer test
56+
if: matrix.os != 'windows-latest'
57+
58+
- name: Execute tests (Windows)
59+
run: composer test-sequential
60+
if: matrix.os == 'windows-latest'

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"psalm": "./vendor/bin/psalm --no-cache",
6666
"analyse": "vendor/bin/phpstan analyse",
6767
"test": "./vendor/bin/testbench package:test --parallel --no-coverage",
68+
"test-sequential": "./vendor/bin/testbench package:test --no-coverage",
6869
"test-coverage": "./vendor/bin/phpunit --coverage-html coverage"
6970
},
7071
"config": {

0 commit comments

Comments
 (0)