Skip to content

Commit 923ff58

Browse files
authored
Merge branch 'master' into patch-69
2 parents 80ced73 + dd77df8 commit 923ff58

File tree

69 files changed

+2785
-3363
lines changed

Some content is hidden

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

69 files changed

+2785
-3363
lines changed

.github/release-drafter.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
template: |
2+
## What’s Changed
3+
4+
$CHANGES

.github/workflows/fix-cs.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- master
8+
# pull_request event is required only for autolabeler
9+
pull_request:
10+
# Only following types are handled by the action, but one can default to all as well
11+
types: [opened, reopened, synchronize]
12+
# pull_request_target event is required for autolabeler to support PRs from forks
13+
# pull_request_target:
14+
# types: [opened, reopened, synchronize]
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
update_release_draft:
21+
permissions:
22+
# write permission is required to create a github release
23+
contents: write
24+
# write permission is required for autolabeler
25+
# otherwise, read permission is required at least
26+
pull-requests: write
27+
runs-on: ubuntu-latest
28+
steps:
29+
# (Optional) GitHub Enterprise requires GHE_HOST variable set
30+
#- name: Set GHE_HOST
31+
# run: |
32+
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
33+
34+
# Drafts your next Release notes as Pull Requests are merged into "master"
35+
- uses: release-drafter/release-drafter@v6
36+
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
37+
# with:
38+
# config-name: my-config.yml
39+
# disable-autolabeler: true
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/run-integration-tests.yml

Lines changed: 9 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -11,53 +11,6 @@ on:
1111
- cron: '0 0 * * *'
1212

1313
jobs:
14-
php-lumen-integration-tests:
15-
runs-on: ubuntu-latest
16-
timeout-minutes: 15
17-
env:
18-
COMPOSER_NO_INTERACTION: 1
19-
strategy:
20-
matrix:
21-
php: [8.3, 8.2, 8.1, 8.0]
22-
lumen: [10.*, 9.*]
23-
exclude:
24-
- lumen: 10.*
25-
php: 8.0
26-
name: P${{ matrix.php }} - Lumen${{ matrix.lumen }}
27-
steps:
28-
- name: Checkout code
29-
uses: actions/checkout@v3
30-
with:
31-
path: src
32-
33-
- name: Setup PHP
34-
uses: shivammathur/setup-php@v2
35-
with:
36-
php-version: ${{ matrix.php }}
37-
coverage: none
38-
tools: composer:v2
39-
40-
- name: Install dependencies
41-
run: |
42-
composer create-project --prefer-dist laravel/lumen:${{ matrix.lumen }} --stability=dev --no-progress sample
43-
cd sample
44-
composer config minimum-stability dev
45-
composer update --prefer-stable --prefer-dist --no-progress
46-
- name: Add package from source
47-
run: |
48-
cd sample
49-
sed -e 's|"type": "project",|&\n"repositories": [ { "type": "path", "url": "../src" } ],|' -i composer.json
50-
composer require --dev "barryvdh/laravel-debugbar:*"
51-
- name: Insert service provider
52-
run: sed -e 's|// \$app->register(App\\\Providers\\\EventServiceProvider::class);|&\n$app->register(\\Barryvdh\\Debugbar\\LumenServiceProvider::class);|' -i sample/bootstrap/app.php
53-
54-
- name: Execute clear run
55-
run: |
56-
cd sample
57-
php artisan debugbar:clear
58-
- name: Check file count in logs
59-
run: |
60-
if [ `ls -1q "sample/storage/logs/" | wc -l` -gt 0 ];then exit 1;fi
6114
php-laravel-integration-tests:
6215
runs-on: ubuntu-latest
6316
timeout-minutes: 15
@@ -66,19 +19,19 @@ jobs:
6619
strategy:
6720
fail-fast: false
6821
matrix:
69-
php: [8.3, 8.2, 8.1, 8.0]
70-
laravel: [11.*, 10.*, 9.*]
22+
php: [8.4, 8.3, 8.2, 8.1]
23+
laravel: [12.*, 11.*, 10.*, 9.*]
7124
exclude:
72-
- laravel: 10.*
73-
php: 8.0
74-
- laravel: 11.*
75-
php: 8.0
25+
- laravel: 12.*
26+
php: 8.1
7627
- laravel: 11.*
7728
php: 8.1
29+
- laravel: 9.*
30+
php: 8.4
7831
name: P${{ matrix.php }} - Laravel${{ matrix.laravel }}
7932
steps:
8033
- name: Checkout code
81-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
8235
with:
8336
path: src
8437

@@ -103,7 +56,8 @@ jobs:
10356
- name: Execute generate run
10457
run: |
10558
cd sample
59+
mkdir -p "storage/debugbar/" && touch "storage/debugbar/foo.json"
10660
php artisan debugbar:clear
10761
- name: Check file count in logs
10862
run: |
109-
if [ `ls -1q "sample/storage/logs/" | wc -l` -gt 0 ];then exit 1;fi
63+
if [ `ls -1q "sample/storage/debugbar/" | wc -l` -gt 0 ];then exit 1;fi

.github/workflows/run-tests.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
php: [8.3, 8.2, 8.1, 8.0]
24-
laravel: [^11, ^10, ^9]
23+
php: [8.4, 8.3, 8.2, 8.1]
24+
laravel: [^12, ^11, ^10, ^9]
2525
dependency-version: [prefer-stable]
2626
exclude:
27-
- laravel: ^10
28-
php: 8.0
29-
- laravel: ^11
30-
php: 8.0
27+
- laravel: ^12
28+
php: 8.1
3129
- laravel: ^11
3230
php: 8.1
31+
- laravel: ^9
32+
php: 8.4
3333

3434
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
3535

3636
steps:
3737
- name: Checkout code
38-
uses: actions/checkout@v3
38+
uses: actions/checkout@v4
3939

4040
- name: Setup PHP
4141
uses: shivammathur/setup-php@v2
@@ -57,7 +57,7 @@ jobs:
5757
run: composer test
5858

5959
- name: Upload Failed Screenshots
60-
uses: actions/upload-artifact@v2-preview
60+
uses: actions/upload-artifact@v4
6161
if: failure()
6262
with:
6363
name: screenshots
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "Update Changelog"
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
update:
9+
runs-on: ubuntu-latest
10+
11+
permissions:
12+
# Give the default GITHUB_TOKEN write permission to commit and push the
13+
# updated CHANGELOG back to the repository.
14+
# https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/
15+
contents: write
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
with:
21+
ref: ${{ github.event.release.target_commitish }}
22+
23+
- name: Update Changelog
24+
uses: stefanzweifel/changelog-updater-action@v1
25+
with:
26+
latest-version: ${{ github.event.release.tag_name }}
27+
release-notes: ${{ github.event.release.body }}
28+
29+
- name: Commit updated CHANGELOG
30+
uses: stefanzweifel/git-auto-commit-action@v5
31+
with:
32+
branch: ${{ github.event.release.target_commitish }}
33+
commit_message: Update CHANGELOG
34+
file_pattern: CHANGELOG.md

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
composer.phar
55
composer.lock
66
.DS_Store
7-
.phpunit.result.cache
7+
.phpunit*
88
/tests/Browser

0 commit comments

Comments
 (0)