Skip to content

Commit f55f1a7

Browse files
committed
Merge branch '5.7-beta' into 5.x
2 parents 8cb0fb9 + a27458c commit f55f1a7

287 files changed

Lines changed: 11399 additions & 5346 deletions

File tree

Some content is hidden

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

.github/workflows/tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,41 +146,41 @@ jobs:
146146
- name: Execute tests (parallel)
147147
id: parallel-tests
148148
continue-on-error: true
149-
run: ./vendor/bin/pest --configuration=phpunit.${{ matrix.db }}.xml --parallel --exclude-group=commands
149+
run: ./vendor/bin/pest --configuration=phpunit.${{ matrix.db }}.xml --parallel --exclude-group=serial
150150
env:
151151
DB_PASSWORD: password
152152
- name: Retry tests (parallel, attempt 2)
153153
if: steps.parallel-tests.outcome == 'failure'
154154
id: parallel-retry-2
155155
continue-on-error: true
156-
run: ./vendor/bin/pest --configuration=phpunit.${{ matrix.db }}.xml --parallel --bail --exclude-group=commands
156+
run: ./vendor/bin/pest --configuration=phpunit.${{ matrix.db }}.xml --parallel --bail --exclude-group=serial
157157
env:
158158
DB_PASSWORD: password
159159
- name: Retry tests (parallel, attempt 3)
160160
if: steps.parallel-retry-2.outcome == 'failure'
161161
id: parallel-retry-3
162162
continue-on-error: true
163-
run: ./vendor/bin/pest --configuration=phpunit.${{ matrix.db }}.xml --parallel --bail --exclude-group=commands
163+
run: ./vendor/bin/pest --configuration=phpunit.${{ matrix.db }}.xml --parallel --bail --exclude-group=serial
164164
env:
165165
DB_PASSWORD: password
166166
- name: Retry tests (parallel, attempt 4)
167167
if: steps.parallel-retry-3.outcome == 'failure'
168168
id: parallel-retry-4
169169
continue-on-error: true
170-
run: ./vendor/bin/pest --configuration=phpunit.${{ matrix.db }}.xml --parallel --bail --exclude-group=commands
170+
run: ./vendor/bin/pest --configuration=phpunit.${{ matrix.db }}.xml --parallel --bail --exclude-group=serial
171171
env:
172172
DB_PASSWORD: password
173173
- name: Retry tests (parallel, attempt 5)
174174
if: steps.parallel-retry-4.outcome == 'failure'
175175
id: parallel-retry-5
176-
run: ./vendor/bin/pest --configuration=phpunit.${{ matrix.db }}.xml --parallel --bail --exclude-group=commands
176+
run: ./vendor/bin/pest --configuration=phpunit.${{ matrix.db }}.xml --parallel --bail --exclude-group=serial
177177
env:
178178
DB_PASSWORD: password
179179
- name: Warn about flaky tests
180180
if: steps.parallel-tests.outcome == 'failure' && (steps.parallel-retry-2.outcome == 'success' || steps.parallel-retry-3.outcome == 'success' || steps.parallel-retry-4.outcome == 'success' || steps.parallel-retry-5.outcome == 'success')
181181
run: |
182182
echo "::warning::Parallel tests failed but a retry passed. This may indicate a race condition or test isolation issue."
183-
- name: Execute command tests (serial)
184-
run: ./vendor/bin/pest --configuration=phpunit.${{ matrix.db }}.xml --group=commands
183+
- name: Execute serial tests
184+
run: ./vendor/bin/pest --configuration=phpunit.${{ matrix.db }}.xml --group=serial
185185
env:
186186
DB_PASSWORD: password

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@
8585
],
8686
"pint": "pint --config pint-strict-imports.json --cache-file=.pint.cache",
8787
"rector": "rector",
88-
"test:pest": "pest --parallel --exclude-group=commands",
89-
"test:sqlite": "pest --configuration=phpunit.sqlite.xml --parallel --exclude-group=commands",
90-
"test:mysql": "pest --configuration=phpunit.mysql.xml --parallel --exclude-group=commands",
91-
"test:pgsql": "pest --configuration=phpunit.pgsql.xml --parallel --exclude-group=commands",
92-
"test:commands:sqlite": "pest --configuration=phpunit.sqlite.xml --group=commands",
93-
"test:commands:mysql": "pest --configuration=phpunit.mysql.xml --group=commands",
94-
"test:commands:pgsql": "pest --configuration=phpunit.pgsql.xml --group=commands",
88+
"test:pest": "pest --parallel --exclude-group=serial",
89+
"test:sqlite": "pest --configuration=phpunit.sqlite.xml --parallel --exclude-group=serial",
90+
"test:mysql": "pest --configuration=phpunit.mysql.xml --parallel --exclude-group=serial",
91+
"test:pgsql": "pest --configuration=phpunit.pgsql.xml --parallel --exclude-group=serial",
92+
"test:serial:sqlite": "pest --configuration=phpunit.sqlite.xml --group=serial",
93+
"test:serial:mysql": "pest --configuration=phpunit.mysql.xml --group=serial",
94+
"test:serial:pgsql": "pest --configuration=phpunit.pgsql.xml --group=serial",
9595
"test:all-databases": [
9696
"@test:sqlite",
9797
"@test:mysql",
@@ -100,7 +100,7 @@
100100
"test:phpstan": "phpstan analyse",
101101
"test": [
102102
"@test:sqlite",
103-
"@test:commands:sqlite",
103+
"@test:serial:sqlite",
104104
"@test:phpstan"
105105
]
106106
},

packages/actions/dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/actions/resources/js/components/modals.js

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ export default ({ livewireId }) => ({
77

88
focusTargetsByNestingIndex: {},
99

10+
boundSyncActionModals: null,
11+
12+
boundOnModalClosed: null,
13+
1014
init() {
11-
window.addEventListener('sync-action-modals', (event) => {
15+
this.boundSyncActionModals = (event) => {
1216
if (event.detail.id !== livewireId) {
1317
return
1418
}
@@ -17,9 +21,9 @@ export default ({ livewireId }) => ({
1721
event.detail.newActionNestingIndex,
1822
event.detail.shouldOverlayParentActions ?? false,
1923
)
20-
})
24+
}
2125

22-
window.addEventListener('modal-closed', (event) => {
26+
this.boundOnModalClosed = (event) => {
2327
const actionNestingIndex = this.getActionNestingIndexFromModalId(
2428
event.detail.id,
2529
)
@@ -34,7 +38,31 @@ export default ({ livewireId }) => ({
3438
}
3539

3640
this.closedActionNestingIndexes.push(actionNestingIndex)
37-
})
41+
}
42+
43+
window.addEventListener(
44+
'sync-action-modals',
45+
this.boundSyncActionModals,
46+
)
47+
48+
window.addEventListener('modal-closed', this.boundOnModalClosed)
49+
},
50+
51+
destroy() {
52+
if (this.boundSyncActionModals) {
53+
window.removeEventListener(
54+
'sync-action-modals',
55+
this.boundSyncActionModals,
56+
)
57+
58+
this.boundSyncActionModals = null
59+
}
60+
61+
if (this.boundOnModalClosed) {
62+
window.removeEventListener('modal-closed', this.boundOnModalClosed)
63+
64+
this.boundOnModalClosed = null
65+
}
3866
},
3967

4068
syncActionModals(

0 commit comments

Comments
 (0)