Skip to content

Commit a772a9e

Browse files
authored
Add Pro level - Webshop support - Drop php8.3 (#3868)
1 parent 1c48b70 commit a772a9e

File tree

564 files changed

+22785
-7408
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

564 files changed

+22785
-7408
lines changed

.editorconfig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,8 @@ indent_size = 2
2727

2828
[lang/**.php]
2929
indent_style = space
30-
indent_size = 4
30+
indent_size = 4
31+
32+
[docker-compose.yaml]
33+
indent_style = space
34+
indent_size = 2

.env.example

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,6 @@ VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
259259
# STRIPE_API_KEY=
260260
# STRIPE_PUBLISHABLE_KEY=
261261

262-
# https://github.com/thephpleague/omnipay-paypal/blob/master/src/RestGateway.php
262+
# Configuration values for PayPal integration
263263
# PAYPAL_CLIENT_ID=
264264
# PAYPAL_SECRET=
265-
266-
# https://github.com/thephpleague/omnipay-paypal/blob/master/src/ExpressInContextGateway.php
267-
# https://github.com/thephpleague/omnipay-paypal/blob/master/src/ProGateway.php
268-
# PAYPAL_API_USERNAME=
269-
# PAYPAL_API_PASSWORD=
270-
# PAYPAL_API_SIGNATURE=

.github/workflows/CICD.yml

Lines changed: 26 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Integrate
33
# Run this workflow every time a new commit pushed to your repository
44
on:
55
push:
6+
branches:
7+
- master
8+
tags:
9+
- '*'
610
paths-ignore:
711
- '**/*.md'
812
- 'public/dist/*.js'
@@ -20,28 +24,14 @@ on:
2024
# Declare default permissions as read only.
2125
permissions: read-all
2226

23-
jobs:
24-
kill_previous:
25-
name: 0️⃣ Kill previous runs
26-
runs-on: ubuntu-latest
27-
# We want to run on external PRs, but not on our own internal PRs as they'll be run by the push to the branch.
28-
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
29-
steps:
30-
- name: Harden Runner
31-
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
32-
with:
33-
egress-policy: audit
34-
35-
- name: Cancel Previous Runs
36-
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
37-
with:
38-
access_token: ${{ github.token }}
27+
concurrency:
28+
group: ${{ github.workflow }}-${{ github.ref }}
29+
cancel-in-progress: ${{ !contains(github.ref, 'master') && !startsWith(github.ref, 'refs/tags/') }} # Only cancel previous runs on non-master/non-tag branches.
3930

31+
jobs:
4032
php_syntax_errors:
41-
name: 1️⃣ PHP 8.3 - Syntax errors
33+
name: 0️⃣ PHP 8.4 - Syntax errors
4234
runs-on: ubuntu-latest
43-
needs:
44-
- kill_previous
4535
steps:
4636
- name: Harden Runner
4737
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
@@ -51,7 +41,7 @@ jobs:
5141
- name: Setup PHP Action
5242
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
5343
with:
54-
php-version: 8.3
44+
php-version: 8.4
5545

5646
- name: Checkout code
5747
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -62,8 +52,12 @@ jobs:
6252
- name: Check source code for syntax errors
6353
run: vendor/bin/parallel-lint --exclude .git --exclude vendor .
6454

55+
check_js:
56+
name: 0️⃣ JS front-end
57+
uses: ./.github/workflows/js_check.yml
58+
6559
code_style_errors:
66-
name: 2️⃣ PHP 8.3 - Code Style errors
60+
name: 1️⃣ PHP 8.4 - Code Style errors
6761
runs-on: ubuntu-latest
6862
needs:
6963
- php_syntax_errors
@@ -76,7 +70,7 @@ jobs:
7670
- name: Set up PHP
7771
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
7872
with:
79-
php-version: 8.3
73+
php-version: 8.4
8074

8175
- name: Checkout code
8276
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -85,16 +79,10 @@ jobs:
8579
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # 3.1.1
8680

8781
- name: Check source code for code style errors
88-
run: PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --verbose --diff --dry-run
89-
90-
check_js:
91-
name: 2️⃣ JS front-end
92-
uses: ./.github/workflows/js_check.yml
93-
needs:
94-
- php_syntax_errors
82+
run: vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --verbose --diff --dry-run
9583

9684
phpstan:
97-
name: 2️⃣ PHP 8.3 - PHPStan
85+
name: 1️⃣ PHP 8.4 - PHPStan
9886
runs-on: ubuntu-latest
9987
needs:
10088
- php_syntax_errors
@@ -110,7 +98,7 @@ jobs:
11098
- name: Setup PHP
11199
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
112100
with:
113-
php-version: 8.3
101+
php-version: 8.4
114102
coverage: none
115103

116104
- name: Install Composer dependencies
@@ -120,7 +108,7 @@ jobs:
120108
run: vendor/bin/phpstan analyze
121109

122110
license:
123-
name: 2️⃣ PHP 8.3 - License Check
111+
name: 1️⃣ PHP 8.4 - License Check
124112
runs-on: ubuntu-latest
125113
needs:
126114
- php_syntax_errors
@@ -136,7 +124,7 @@ jobs:
136124
- name: Setup PHP
137125
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
138126
with:
139-
php-version: 8.3
127+
php-version: 8.4
140128
coverage: none
141129

142130
- name: Install Composer dependencies
@@ -147,21 +135,21 @@ jobs:
147135
run: vendor/bin/composer-license-checker check -b GPL-2.0-or-later -b GPL-2.0-only -b GPL-3.0-only -b GPL-3.0-or-later -b AGPL-1.0-only -b AGPL-1.0-or-later -b AGPL-3.0-only -b AGPL-3.0-or-later -b LGPL-2.0-only -b LGPL-2.0-or-later -b LGPL-2.1-only -b LGPL-2.1-or-later -b LGPL-3.0-only -b LGPL-3.0-or-later --no-dev
148136

149137
tests:
150-
name: 2️⃣ PHP tests
138+
name: 1️⃣ PHP tests
151139
needs:
152140
- php_syntax_errors
153141
uses: ./.github/workflows/php_tests.yml
154142
secrets:
155143
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
156144

157145
dist:
158-
name: 3️⃣ PHP dist
146+
name: 2️⃣ PHP dist
159147
needs:
160148
- code_style_errors
161149
uses: ./.github/workflows/php_dist.yml
162150

163151
createArtifact:
164-
name: 4️⃣ Build Artifact
152+
name: 3️⃣ Build Artifact
165153
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
166154
needs:
167155
- phpstan
@@ -188,7 +176,7 @@ jobs:
188176
- name: Setup PHP
189177
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
190178
with:
191-
php-version: 8.3
179+
php-version: 8.4
192180
extensions: ${{ env.extensions }}
193181
coverage: none
194182

@@ -241,7 +229,7 @@ jobs:
241229

242230

243231
release:
244-
name: 5️⃣ Release
232+
name: 4️⃣ Release
245233
if: startsWith(github.ref, 'refs/tags/')
246234
needs:
247235
- createArtifact

.github/workflows/php_dist.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
strategy:
1414
matrix:
1515
php-version:
16-
- 8.3
1716
- 8.4
17+
- 8.5
1818
sql-versions:
1919
- mariadb
2020
- postgresql

.github/workflows/php_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
strategy:
2121
matrix:
2222
php-version:
23-
- 8.3
2423
- 8.4
24+
- 8.5
2525
sql-versions:
2626
- mariadb
2727
- postgresql

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,12 @@ docker-compose.yml
5959

6060
# Building stuff for releaseses
6161
Lychee/*
62+
lychee/*
6263
/public/embed/
6364
report_*
6465

6566
# XHProf output
66-
public/vendor/
67+
public/vendor/
68+
**/caddy
69+
frankenphp
70+
frankenphp-worker.php

.php-cs-fixer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,6 @@ function (PhpCsFixer\Finder $finder, $dir) {
5757
$config->setIndent("\t");
5858
$config->setLineEnding("\n");
5959
$config->setFinder($finder);
60+
$config->setUnsupportedPhpVersionAllowed(true);
6061

6162
return $config;

0 commit comments

Comments
 (0)