Skip to content

Commit 2ccc83f

Browse files
authored
Merge branch 'main' into feat/pest-v4-upgrade-and-testing-improvements
2 parents 13bd61a + b14a838 commit 2ccc83f

19 files changed

Lines changed: 281 additions & 207 deletions

File tree

.github/workflows/linter.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,17 @@ jobs:
2020
steps:
2121

2222
- name: Checkout code
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v6.0.2
2424
with:
25-
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
25+
# Checkout the actual branch, not a specific commit
26+
ref: ${{ github.head_ref || github.ref_name }}
27+
# Fetch the full history to avoid shallow clone issues
28+
fetch-depth: 0
2629

2730
- name: Run Laravel Pint
2831
uses: aglipanci/laravel-pint-action@latest
2932

3033
- name: Commit changes
31-
uses: stefanzweifel/git-auto-commit-action@v5
34+
uses: stefanzweifel/git-auto-commit-action@v7.1.0
3235
with:
3336
commit_message: "style: fix code style"

.github/workflows/test-runner.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
# Fail the whole workflow if one of the jobs fails
2525
fail-fast: true
2626
matrix:
27-
php: [ 8.3, 8.4 ]
27+
php: [ 8.3, 8.4, 8.5 ]
2828
laravel: [ 11.*, 12.* ]
2929
dependency-version: [ prefer-stable ]
3030
shard: [ 1, 2, 3, 4 ]
@@ -43,7 +43,7 @@ jobs:
4343
# run: sudo apt-get update && sudo apt-get install -y locales locales-all
4444

4545
- name: Checkout code
46-
uses: actions/checkout@v4
46+
uses: actions/checkout@v6.0.2
4747
with:
4848
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
4949

@@ -75,7 +75,7 @@ jobs:
7575

7676
- name: Cache Composer packages
7777
id: composer-cache
78-
uses: actions/cache@v3
78+
uses: actions/cache@v5.0.5
7979
with:
8080
path: vendor
8181
key: php-${{ matrix.php }}-laravel-${{ matrix.laravel }}-${{ matrix.dependency-version }}-${{ hashFiles('**/composer.lock') }}
@@ -110,8 +110,9 @@ jobs:
110110
- name: Upload coverage reports to Codecov
111111
# Make sure the Codecov action is only executed once
112112
if: matrix.php == '8.3' && matrix.laravel == '12.*' && matrix.dependency-version == 'prefer-stable' && matrix.shard == 1
113-
uses: codecov/codecov-action@v5
113+
uses: codecov/codecov-action@v6.0.0
114+
env:
115+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
114116
with:
115-
token: ${{ secrets.CODECOV_TOKEN }}
116117
files: ./coverage.xml
117118
verbose: true

.lando.dist.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@ config:
88
database: mariadb:10.11
99
services:
1010
appserver:
11-
type: php:custom
1211
xdebug: "debug,develop,coverage"
1312
environment:
1413
TZ: "Europe/Ljubljana"
1514
APP_BASE_PATH: "/app/workbench"
1615
TESTBENCH_WORKING_PATH: "/app"
1716
overrides:
18-
image: slimdeluxe/php:8.3-v1.3
17+
image: slimdeluxe/php:8.3-v1.4
1918
platform: linux/amd64
2019
run:
2120
- composer install --no-interaction --prefer-dist

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141
},
4242
"require": {
43-
"php": "^8.2",
43+
"php": "^8.3",
4444
"bezhansalleh/filament-shield": "^4.0",
4545
"datalinx/php-utils": "^2.5",
4646
"eclipsephp/common": "dev-main",
@@ -85,6 +85,7 @@
8585
"@php vendor/bin/testbench key:generate --ansi",
8686
"npm install",
8787
"@php vendor/bin/testbench vendor:publish --tag='filament-shield-config'",
88+
"@php vendor/bin/testbench vendor:publish --tag='eclipse-common-config'",
8889
"@php vendor/bin/testbench filament:assets",
8990
"@php vendor/bin/testbench package:sync-skeleton"
9091
]

config/filament-shield.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<?php
22

3+
use Eclipse\Core\Models\Site;
4+
use Eclipse\Core\Models\User;
5+
36
return [
47
'shield_resource' => [
58
'slug' => 'shield/roles',
@@ -13,9 +16,9 @@
1316
],
1417
],
1518

16-
'tenant_model' => \Eclipse\Core\Models\Site::class,
19+
'tenant_model' => Site::class,
1720

18-
'auth_provider_model' => \Eclipse\Core\Models\User::class,
21+
'auth_provider_model' => User::class,
1922

2023
'super_admin' => [
2124
'enabled' => true,
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: eclipse-world-8.3
1+
name: eclipse-world-8.4
22
services:
33
appserver:
4-
type: php:custom
4+
type: php:8.4
55
via: cli
66
app_mount: delegated
77
overrides:
8-
image: slimdeluxe/php:8.3-v1.0
8+
image: slimdeluxe/php:8.4-v1.4
99
volumes:
1010
# Mount the project root directory to /app
1111
- "../..:/app"

env/php-8.5/.lando.dist.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: eclipse-world-8.5
2+
services:
3+
appserver:
4+
type: php:8.5
5+
via: cli
6+
app_mount: delegated
7+
overrides:
8+
image: slimdeluxe/php:8.5-v1.4
9+
volumes:
10+
# Mount the project root directory to /app
11+
- "../..:/app"
12+
# Prevent the source vendor directory to be mounted
13+
- /app/vendor
14+
# Make available the source composer.json to be used by the merged one
15+
- "../../composer.json:/usr/local/src/composer.json"
16+
# Use the merged composer.json instead of the source one
17+
- "./composer.json:/app/composer.json"
18+
tooling:
19+
php:
20+
service: appserver
21+
composer:
22+
service: appserver
23+
test:
24+
service: appserver
25+
description: Run tests
26+
cmd: "composer run-script test"
27+
testbench:
28+
service: appserver
29+
description: Run testbench CLI
30+
cmd: "vendor/bin/testbench"

env/php-8.5/composer.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "eclipsephp/world-plugin",
3+
"require": {
4+
"wikimedia/composer-merge-plugin": "dev-master"
5+
},
6+
"extra": {
7+
"merge-plugin": {
8+
"require": [
9+
"/usr/local/src/composer.json"
10+
],
11+
"merge-scripts": true
12+
},
13+
"laravel": {
14+
"providers": [
15+
"Eclipse\\World\\EclipseWorldServiceProvider"
16+
]
17+
}
18+
},
19+
"config": {
20+
"lock": false,
21+
"allow-plugins": {
22+
"wikimedia/composer-merge-plugin": true,
23+
"pestphp/pest-plugin": true
24+
}
25+
},
26+
"autoload": {
27+
"psr-4": {
28+
"Eclipse\\World\\": "src/",
29+
"Eclipse\\World\\Factories\\": "database/factories/",
30+
"Eclipse\\World\\Seeders\\": "database/seeders/"
31+
}
32+
},
33+
"autoload-dev": {
34+
"psr-4": {
35+
"Tests\\": "tests/",
36+
"Workbench\\App\\": "workbench/app/",
37+
"Workbench\\Database\\Factories\\": "workbench/database/factories/",
38+
"Workbench\\Database\\Seeders\\": "workbench/database/seeders/"
39+
}
40+
}
41+
}

0 commit comments

Comments
 (0)