Skip to content

Commit 6e792c0

Browse files
[9.x] Run tests on Windows (#772)
1 parent abd219e commit 6e792c0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,13 @@ jobs:
1919
laravel: [12.*]
2020
stability: [prefer-lowest, prefer-stable]
2121
os: [ubuntu-latest]
22+
include:
23+
- os: windows-latest
24+
php: 8.5
25+
laravel: 12.*
26+
stability: prefer-stable
2227

23-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}
28+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2429

2530
steps:
2631
- name: Checkout code
@@ -30,7 +35,7 @@ jobs:
3035
uses: shivammathur/setup-php@v2
3136
with:
3237
php-version: ${{ matrix.php }}
33-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
38+
extensions: fileinfo, exif, gd, pdo, sqlite, pdo_sqlite, intl
3439

3540
- name: Install dependencies
3641
run: |

tests/Http/Controllers/ApiControllerTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ public function gets_a_resource_model_with_nested_fields()
149149
->assertSee(['data'])
150150
->assertJsonPath('data.id', $post->id)
151151
->assertJsonPath('data.values.alt_title', 'Alternative Title...')
152-
->assertJsonPath('data.values.alt_body', '<p>This is a <strong>great</strong> post! You should <em>read</em> it.</p>
153-
');
152+
->assertJsonPath('data.values.alt_body', fn ($value) => trim($value) === '<p>This is a <strong>great</strong> post! You should <em>read</em> it.</p>');
154153
}
155154

156155
#[Test]

0 commit comments

Comments
 (0)