Skip to content

Commit 8ca0989

Browse files
authored
chore: update composer dependencies (pterodactyl#5198)
Signed-off-by: Matthew Penner <me@matthewp.io>
1 parent fbc24d2 commit 8ca0989

File tree

455 files changed

+5549
-4972
lines changed

Some content is hidden

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

455 files changed

+5549
-4972
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,21 @@ jobs:
1414
ui:
1515
name: UI
1616
runs-on: ubuntu-20.04
17+
permissions:
18+
contents: read
1719
strategy:
1820
fail-fast: false
1921
matrix:
2022
node-version: [16]
2123
steps:
2224
- name: Code Checkout
23-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2426

2527
- name: Setup Node
26-
uses: actions/setup-node@v3
28+
uses: actions/setup-node@v4
2729
with:
2830
node-version: ${{ matrix.node-version }}
29-
cache: "yarn"
31+
cache: yarn
3032

3133
- name: Install dependencies
3234
run: yarn install --frozen-lockfile

.github/workflows/ci.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,18 @@ jobs:
1414
tests:
1515
name: Tests
1616
runs-on: ubuntu-20.04
17+
permissions:
18+
contents: read
1719
strategy:
1820
fail-fast: false
1921
matrix:
20-
php: [8.1, 8.2]
21-
database: ["mariadb:10.2", "mysql:8"]
22+
php: [8.2, 8.3]
23+
database:
24+
- mariadb:10.5
25+
- mariadb:10.11
26+
- mariadb:11.5
27+
- mysql:8
28+
- mysql:9
2229
services:
2330
database:
2431
image: ${{ matrix.database }}
@@ -27,18 +34,17 @@ jobs:
2734
MYSQL_DATABASE: testing
2835
ports:
2936
- 3306
30-
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
3137
steps:
3238
- name: Code Checkout
33-
uses: actions/checkout@v3
39+
uses: actions/checkout@v4
3440

3541
- name: Get cache directory
3642
id: composer-cache
3743
run: |
3844
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
3945
4046
- name: Cache
41-
uses: actions/cache@v3
47+
uses: actions/cache@v4
4248
with:
4349
path: ${{ steps.composer-cache.outputs.dir }}
4450
key: ${{ runner.os }}-composer-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}

.github/workflows/docker.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@ jobs:
1818
name: Push
1919
runs-on: ubuntu-20.04
2020
if: "!contains(github.ref, 'develop') || (!contains(github.event.head_commit.message, 'skip docker') && !contains(github.event.head_commit.message, 'docker skip'))"
21+
permissions:
22+
contents: read
23+
packages: write
2124
steps:
2225
- name: Code checkout
23-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2427

2528
- name: Docker metadata
2629
id: docker_meta
27-
uses: docker/metadata-action@v4
30+
uses: docker/metadata-action@v5
2831
with:
2932
images: ghcr.io/pterodactyl/panel
3033
flavor: |
@@ -35,13 +38,13 @@ jobs:
3538
type=ref,event=branch
3639
3740
- name: Setup QEMU
38-
uses: docker/setup-qemu-action@v2
41+
uses: docker/setup-qemu-action@v3
3942

4043
- name: Setup Docker buildx
41-
uses: docker/setup-buildx-action@v2
44+
uses: docker/setup-buildx-action@v3
4245

4346
- name: Login to GitHub Container Registry
44-
uses: docker/login-action@v2
47+
uses: docker/login-action@v3
4548
if: "github.event_name != 'pull_request'"
4649
with:
4750
registry: ghcr.io
@@ -56,7 +59,7 @@ jobs:
5659
sed -i "s/ 'version' => 'canary',/ 'version' => '${REF:1}',/" config/app.php
5760
5861
- name: Build and Push
59-
uses: docker/build-push-action@v4
62+
uses: docker/build-push-action@v6
6063
with:
6164
context: .
6265
file: ./Dockerfile

.github/workflows/lint.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@ jobs:
1414
lint:
1515
name: Lint
1616
runs-on: ubuntu-20.04
17+
permissions:
18+
contents: read
1719
steps:
1820
- name: Code Checkout
19-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2022

2123
- name: Setup PHP
2224
uses: shivammathur/setup-php@v2
2325
with:
24-
php-version: "8.1"
26+
php-version: "8.2"
2527
extensions: bcmath, curl, gd, mbstring, mysql, openssl, pdo, tokenizer, xml, zip
2628
tools: composer:v2
2729
coverage: none

.github/workflows/release.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,17 @@ jobs:
99
release:
1010
name: Release
1111
runs-on: ubuntu-20.04
12+
permissions:
13+
contents: write # write is required to create releases and push.
1214
steps:
1315
- name: Code checkout
14-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1517

1618
- name: Setup Node
17-
uses: actions/setup-node@v3
19+
uses: actions/setup-node@v4
1820
with:
1921
node-version: 16
20-
cache: "yarn"
22+
cache: yarn
2123

2224
- name: Install dependencies
2325
run: yarn install --frozen-lockfile
@@ -41,7 +43,7 @@ jobs:
4143
4244
- name: Create release archive
4345
run: |
44-
rm -rf node_modules tests CODE_OF_CONDUCT.md CONTRIBUTING.md flake.lock flake.nix phpunit.xml shell.nix
46+
rm -rf node_modules tests CODE_OF_CONDUCT.md CONTRIBUTING.md flake.lock flake.nix phpunit.xml shell.nix
4547
tar -czf panel.tar.gz * .editorconfig .env.example .eslintignore .eslintrc.js .gitignore .prettierrc.json
4648
4749
- name: Extract changelog
@@ -58,7 +60,7 @@ jobs:
5860
5961
- name: Create release
6062
id: create_release
61-
uses: softprops/action-gh-release@v1
63+
uses: softprops/action-gh-release@v2
6264
env:
6365
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6466
with:

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ public/assets/manifest.json
2121
# For local development with docker
2222
# Remove if we ever put the Dockerfile in the repo
2323
.dockerignore
24-
docker-compose.yml
24+
docker-compose.*
25+
!docker-compose.example.yml
26+
!docker-compose.example.yaml
2527

2628
# for image related files
2729
misc
@@ -33,4 +35,3 @@ resources/lang/locales.js
3335
/public/build
3436
/public/hot
3537
result
36-
docker-compose.yaml

.php-cs-fixer.dist.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
use PhpCsFixer\Config;
44
use PhpCsFixer\Finder;
5+
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
56

67
$finder = (new Finder())
78
->in(__DIR__)
@@ -14,6 +15,7 @@
1415
->notName(['_ide_helper*']);
1516

1617
return (new Config())
18+
->setParallelConfig(ParallelConfigFactory::detect())
1719
->setRiskyAllowed(true)
1820
->setFinder($finder)
1921
->setRules([

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN yarn install --frozen-lockfile \
1010

1111
# Stage 1:
1212
# Build the actual container with all of the needed PHP dependencies that will run the application.
13-
FROM --platform=$TARGETOS/$TARGETARCH php:8.1-fpm-alpine
13+
FROM --platform=$TARGETOS/$TARGETARCH php:8.2-fpm-alpine
1414
WORKDIR /app
1515
COPY . ./
1616
COPY --from=0 /app/public/assets ./public/assets

app/Console/Commands/Location/DeleteLocationCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class DeleteLocationCommand extends Command
2020
*/
2121
public function __construct(
2222
private LocationDeletionService $deletionService,
23-
private LocationRepositoryInterface $repository
23+
private LocationRepositoryInterface $repository,
2424
) {
2525
parent::__construct();
2626
}

app/Console/Commands/Maintenance/CleanServiceBackupFilesCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function handle()
3636

3737
collect($files)->each(function (\SplFileInfo $file) {
3838
$lastModified = Carbon::createFromTimestamp($this->disk->lastModified($file->getPath()));
39-
if ($lastModified->diffInMinutes(Carbon::now()) > self::BACKUP_THRESHOLD_MINUTES) {
39+
if ((int) $lastModified->diffInMinutes(Carbon::now()) > self::BACKUP_THRESHOLD_MINUTES) {
4040
$this->disk->delete($file->getPath());
4141
$this->info(trans('command/messages.maintenance.deleting_service_backup', ['file' => $file->getFilename()]));
4242
}

0 commit comments

Comments
 (0)