diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 921264b2..2ca7b057 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,8 +19,13 @@ jobs: laravel: [12.*] stability: [prefer-lowest, prefer-stable] os: [ubuntu-latest] + include: + - os: windows-latest + php: 8.5 + laravel: 12.* + stability: prefer-stable - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} steps: - name: Checkout code @@ -30,7 +35,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick + extensions: fileinfo, exif, gd, pdo, sqlite, pdo_sqlite, intl - name: Install dependencies run: | diff --git a/tests/Http/Controllers/ApiControllerTest.php b/tests/Http/Controllers/ApiControllerTest.php index e214688d..098c6f03 100644 --- a/tests/Http/Controllers/ApiControllerTest.php +++ b/tests/Http/Controllers/ApiControllerTest.php @@ -149,8 +149,7 @@ public function gets_a_resource_model_with_nested_fields() ->assertSee(['data']) ->assertJsonPath('data.id', $post->id) ->assertJsonPath('data.values.alt_title', 'Alternative Title...') - ->assertJsonPath('data.values.alt_body', '
This is a great post! You should read it.
-'); + ->assertJsonPath('data.values.alt_body', fn ($value) => trim($value) === 'This is a great post! You should read it.
'); } #[Test]