Skip to content

Commit d6f5b57

Browse files
authored
Merge pull request #885 from bavix/test-10x
[10.x] Add support laravel ^11.0
2 parents ab1ee58 + 72fb61c commit d6f5b57

36 files changed

+222
-235
lines changed

.github/workflows/autofix.yaml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: fixer
2+
3+
on:
4+
push:
5+
branches: [ 10.x ]
6+
pull_request:
7+
branches: [ 10.x ]
8+
9+
jobs:
10+
autofix:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: 8.1
21+
extensions: mbstring, pgsql, mysql, sqlite, redis, memcached, bcmath
22+
coverage: pcov
23+
env:
24+
runner: self-hosted
25+
26+
- name: Validate composer.json and composer.lock
27+
run: composer validate --strict
28+
29+
- name: Cache Composer packages
30+
id: composer-cache
31+
uses: actions/cache@v4
32+
with:
33+
path: vendor
34+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
35+
restore-keys: |
36+
${{ runner.os }}-php-
37+
38+
- name: Install dependencies
39+
run: composer install --prefer-dist --no-progress
40+
41+
- name: Run rector-fix
42+
run: composer rector-fix
43+
44+
- name: Run ecs-fix
45+
run: composer ecs-fix
46+
47+
- name: Run rector
48+
run: composer rector
49+
50+
- name: Run ecs
51+
run: composer ecs
52+
53+
- name: Run parabench
54+
run: composer parabench
55+
56+
- name: "Check if build has changed"
57+
if: success()
58+
id: has-changes
59+
run: |
60+
echo "stdout<<EOF" >> $GITHUB_OUTPUT
61+
echo "$(git diff --stat)" >> $GITHUB_OUTPUT
62+
echo 'EOF' >> $GITHUB_OUTPUT
63+
64+
- name: Import GPG key
65+
if: ${{ steps.has-changes.outputs.stdout }}
66+
uses: crazy-max/ghaction-import-gpg@v6
67+
with:
68+
gpg_private_key: ${{ secrets.GPG_BOT }}
69+
passphrase: ${{ secrets.GPG_PASSPHRASE }}
70+
fingerprint: ${{ secrets.GPG_FINGERPRINT }}
71+
git_config_global: true
72+
git_user_signingkey: true
73+
git_commit_gpgsign: true
74+
git_committer_name: Github bot
75+
git_committer_email: [email protected]
76+
77+
- name: "Commit files"
78+
if: ${{ steps.has-changes.outputs.stdout }}
79+
env:
80+
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
81+
run: |
82+
gh pr checkout ${{ github.event.pull_request.number }}
83+
git commit -S -m "autofix" -a
84+
85+
- name: "Push changes"
86+
if: ${{ steps.has-changes.outputs.stdout }}
87+
env:
88+
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
89+
run: git push -u origin HEAD

.github/workflows/code-quality.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Qodana
22
on:
33
workflow_dispatch:
44
push:
5-
branches: [ master ]
5+
branches: [ 10.x ]
66
pull_request:
7-
branches: [ master ]
7+
branches: [ 10.x ]
88

99
jobs:
1010
qodana:

.github/workflows/code-style.yaml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/deptrac.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: deptrac
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ 10.x ]
66
pull_request:
7-
branches: [ master ]
7+
branches: [ 10.x ]
88

99
jobs:
1010
deptrac:

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: build docs
22

33
on:
44
pull_request:
5-
branches: [ master ]
5+
branches: [ 10.x ]
66

77
jobs:
88
build_pages:

.github/workflows/phpstan.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: phpstan
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ 10.x ]
66
pull_request:
7-
branches: [ master ]
7+
branches: [ 10.x ]
88

99
jobs:
1010
phpstan:

.github/workflows/phpunits.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: phpunits
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ 10.x ]
66
pull_request:
7-
branches: [ master ]
7+
branches: [ 10.x ]
88

99
env:
1010
MEMCACHED_HOST: localhost
@@ -19,6 +19,7 @@ jobs:
1919
strategy:
2020
matrix:
2121
php-versions: [8.1, 8.2, 8.3]
22+
stability: [prefer-lowest, prefer-stable]
2223
databases: [testing, pgsql, mysql, mariadb]
2324
caches: [array, redis, memcached, database]
2425
locks: [redis, memcached]
@@ -73,7 +74,7 @@ jobs:
7374
- 3306:3306
7475

7576
mariadb:
76-
image: mariadb:10.5
77+
image: mariadb:10.10
7778
env:
7879
MYSQL_ROOT_PASSWORD: wallet
7980
MYSQL_DATABASE: wallet
@@ -115,11 +116,11 @@ jobs:
115116
116117
- name: Install dependencies
117118
id: composer-dependencies
118-
run: composer install --prefer-dist --no-progress
119+
run: composer update --${{ matrix.stability }} --prefer-dist --no-progress
119120

120121
- name: Check codeclimate
121122
id: codeclimate-check
122-
run: echo "execute=${{ matrix.php-versions == '8.2' && matrix.caches == 'array' && matrix.databases == 'testing' }}" >> $GITHUB_OUTPUT
123+
run: echo "execute=${{ matrix.php-versions == '8.3' && matrix.caches == 'array' && matrix.databases == 'testing' }}" >> $GITHUB_OUTPUT
123124

124125
- name: Prepare codeclimate
125126
id: codeclimate-prepare

.github/workflows/rector.yaml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/semgrep.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: semgrep
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ 10.x ]
66
pull_request:
7-
branches: [ master ]
7+
branches: [ 10.x ]
88

99
jobs:
1010
semgrep:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ laravel-wallet - Easy work with virtual wallet.
2626
| 7.x | ^6.0,^7.0,^8.0 | 7.4,8.0,8.1 | Nov 25, 2021 | Mar 1, 2022 | Sep 6, 2022 |
2727
| 8.x | ^9.0 | 8.0,8.1 | Feb 8, 2022 | May 1, 2022 | Jun 1, 2022 |
2828
| 9.x [LTS] | ^9.0,^10.0 | 8.0,8.1,8.2,8.3 | May 2, 2022 | Feb 1, 2023 | Feb 6, 2024 |
29-
| 10.x [LTS] | ^10.0 | 8.1,8.2,8.3 | Jul 8, 2023 | May 1, 2024 | Feb 4, 2025 |
29+
| 10.x [LTS] | ^10.0,^11.0 | 8.1,8.2,8.3 | Jul 8, 2023 | May 1, 2024 | Feb 4, 2025 |
3030

3131
### Upgrade Guide
3232

0 commit comments

Comments
 (0)