Skip to content

Commit 525855d

Browse files
crynobonetegos
authored andcommitted
[12.x] Test Improvements (laravel#57031)
* [12.x] CI Improvements Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> --------- Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent f639297 commit 525855d

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/tests.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ jobs:
7272
- name: Set Framework version
7373
run: composer config version "13.x-dev"
7474

75+
- name: Set Minimum dependencies for `prefer-lowest`
76+
uses: nick-fields/retry@v3
77+
with:
78+
timeout_minutes: 5
79+
max_attempts: 5
80+
command: composer require opis/string:2.0.1 --no-interaction --no-update
81+
shell: bash
82+
if: matrix.stability == 'prefer-lowest'
83+
7584
- name: Install dependencies
7685
uses: nick-fields/retry@v3
7786
with:
@@ -136,6 +145,15 @@ jobs:
136145
- name: Set Framework version
137146
run: composer config version "13.x-dev"
138147

148+
- name: Set Minimum dependencies for `prefer-lowest`
149+
uses: nick-fields/retry@v3
150+
with:
151+
timeout_minutes: 5
152+
max_attempts: 5
153+
command: composer require opis/string:2.0.1 --no-interaction --no-update
154+
shell: bash
155+
if: matrix.stability == 'prefer-lowest'
156+
139157
- name: Install dependencies
140158
uses: nick-fields/retry@v3
141159
with:

tests/Support/SupportStrTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212

1313
class SupportStrTest extends TestCase
1414
{
15+
/** {@inheritdoc} */
16+
#[\Override]
17+
protected function tearDown(): void
18+
{
19+
Str::createRandomStringsNormally();
20+
}
21+
1522
public function testStringCanBeLimitedByWords(): void
1623
{
1724
$this->assertSame('Taylor...', Str::words('Taylor Otwell', 1));

0 commit comments

Comments
 (0)