Skip to content

Commit 2ef1b7e

Browse files
authored
Update run-tests.yml
1 parent cef7509 commit 2ef1b7e

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,18 @@ on:
88

99
jobs:
1010
test:
11-
runs-on: ${{ matrix.os }}
11+
runs-on: ubuntu-latest
1212
strategy:
1313
fail-fast: true
1414
matrix:
15-
os: [ubuntu-latest, windows-latest]
1615
php: [8.3]
1716
laravel: [11.*]
1817
stability: [prefer-lowest, prefer-stable]
1918
include:
2019
- laravel: 11.*
2120
testbench: 9.*
2221

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

2524
steps:
2625
- name: Checkout code
@@ -41,9 +40,18 @@ jobs:
4140
- name: Install dependencies
4241
shell: bash
4342
run: |
44-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
43+
# Require Laravel framework
44+
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
45+
46+
# Require Testbench and upgrade Collision for Laravel 11 compatibility
47+
composer require --dev "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
48+
composer require --dev "nunomaduro/collision:^8.0" --no-interaction --no-update
49+
50+
# Update dependencies
4551
if [ "${{ matrix.stability }}" = "prefer-lowest" ]; then
46-
composer update --prefer-lowest --prefer-dist --no-interaction --with="orchestra/canvas:^9.0"
52+
# Pin Canvas to avoid incompatible old versions
53+
composer update --prefer-lowest --prefer-dist --no-interaction \
54+
--with="orchestra/canvas:^9.0"
4755
else
4856
composer update --prefer-stable --prefer-dist --no-interaction
4957
fi

0 commit comments

Comments
 (0)