Skip to content

Commit 83e3f39

Browse files
authored
Fix tests on windows (#1720)
* Update run-tests.yml * Update snapshot * Simplify matrix
1 parent 31979ed commit 83e3f39

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/run-tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,18 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
os: [ubuntu-22.04, windows-2019]
23+
os: [ubuntu-latest]
2424
php: [8.4, 8.3, 8.2]
2525
laravel: [~11.15, 12.x]
2626
stability: [prefer-lowest, prefer-stable]
27+
include:
28+
- os: windows-latest
29+
php: 8.3
30+
laravel: 12.x
31+
stability: prefer-stable
2732
steps:
2833
- name: Set git to use LF
29-
if: ${{ matrix.os == 'windows-2019' }}
34+
if: ${{ matrix.os == 'windows-latest' }}
3035
run: |
3136
git config --global core.autocrlf false
3237
git config --global core.eol lf

tests/Console/ModelsCommand/AdvancedCasts/__snapshots__/Test__test__1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected function casts(): array
7474
'cast_to_as_collection' => AsCollection::class,
7575
'cast_to_as_collection_of' => AsCollection::class . ':,' . AdvancedCastMap::class, // since 12.10
7676
'cast_to_as_collection_using' => AsCollection::using(AdvancedCastCollection::class),
77-
'cast_to_as_collection_using_and_map' => AsCollection::class . ':' . AdvancedCastCollection::class. ',' . AdvancedCastMap::class, // since 12.10
77+
'cast_to_as_collection_using_and_map' => AsCollection::class . ':' . AdvancedCastCollection::class . ',' . AdvancedCastMap::class, // since 12.10
7878
'cast_to_as_enum_collection' => AsEnumCollection::class,
7979
'cast_to_as_enum_collection_of' => AsEnumCollection::of(AdvancedCastEnum::class),
8080
'cast_to_as_array_object' => AsArrayObject::class,

0 commit comments

Comments
 (0)