Skip to content

Commit 89fe470

Browse files
committed
Updates for 12
1 parent d86b783 commit 89fe470

File tree

3 files changed

+39
-28
lines changed

3 files changed

+39
-28
lines changed

.github/workflows/style.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,19 @@ jobs:
66
lint:
77
runs-on: ubuntu-latest
88

9+
permissions:
10+
contents: write
11+
912
steps:
1013
- name: Checkout code
11-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
15+
with:
16+
ref: ${{ github.head_ref }}
1217

1318
- name: Setup PHP
1419
uses: shivammathur/setup-php@v2
1520
with:
16-
php-version: "8.1"
21+
php-version: "8.3"
1722
extensions: json, dom, curl, libxml, mbstring
1823
coverage: none
1924

@@ -24,6 +29,6 @@ jobs:
2429
run: pint
2530

2631
- name: Commit linted files
27-
uses: stefanzweifel/git-auto-commit-action@v4
32+
uses: stefanzweifel/git-auto-commit-action@v5
2833
with:
2934
commit_message: "Fix code styling [ci skip]"

.github/workflows/tests.yml

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,38 +17,20 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
php: [8.0, 8.1, 8.2, 8.3]
21-
laravel: ['8.*', '9.*', '10.*', '11.*', '12.*']
20+
php: [8.1, 8.2, 8.3]
21+
laravel: ['10.*', '11.*', '12.*']
2222
dependency-version: [prefer-lowest, prefer-stable]
2323
include:
24-
- laravel: 8.*
25-
testbench: 6.*
26-
- laravel: 9.*
27-
testbench: 7.*
2824
- laravel: 10.*
2925
testbench: 8.*
3026
- laravel: 11.*
3127
testbench: 9.*
3228
- laravel: 12.*
3329
testbench: 10.*
30+
3431
exclude:
35-
- laravel: 8.*
36-
php: 8.1
37-
dependency-version: prefer-lowest
38-
- laravel: 8.*
39-
php: 8.2
40-
dependency-version: prefer-lowest
41-
- laravel: 8.*
42-
php: 8.3
43-
dependency-version: prefer-lowest
44-
- laravel: 10.*
45-
php: 8.0
46-
- laravel: 11.*
47-
php: 8.0
4832
- laravel: 11.*
4933
php: 8.1
50-
- laravel: 12.*
51-
php: 8.0
5234
- laravel: 12.*
5335
php: 8.1
5436

@@ -71,11 +53,15 @@ jobs:
7153
- name: Checkout code
7254
uses: actions/checkout@v4
7355

74-
- name: Cache dependencies
75-
uses: actions/cache@v4
56+
- name: Get Composer Cache Directory
57+
id: composer-cache
58+
run: |
59+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
60+
61+
- uses: actions/cache@v4
7662
with:
77-
path: ~/.composer/cache/files
78-
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
63+
path: ${{ steps.composer-cache.outputs.dir }}
64+
key: php-${{ matrix.php }}-l${{ matrix.laravel }}-v${{ matrix.dependency-version }}-composer-${{ hashFiles('composer.json') }}
7965

8066
- name: Setup PHP
8167
uses: shivammathur/setup-php@v2

pint.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"preset": "laravel",
3+
"rules": {
4+
"not_operator_with_successor_space": false,
5+
"heredoc_to_nowdoc": false,
6+
"phpdoc_summary": false,
7+
"concat_space": {
8+
"spacing": "one"
9+
},
10+
"function_declaration": {
11+
"closure_fn_spacing": "none"
12+
},
13+
"trailing_comma_in_multiline": false
14+
},
15+
"xxx_header_comment": {
16+
"header": "@author Aaron Francis <[email protected]>\n\n@link https://aaronfrancis.com\n@link https://x.com/aarondfrancis",
17+
"comment_type": "PHPDoc",
18+
"location": "after_declare_strict"
19+
}
20+
}

0 commit comments

Comments
 (0)