Skip to content

Commit cef7509

Browse files
authored
Update run-tests.yml
1 parent 980d721 commit cef7509

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
test:
11-
runs-on: ubuntu-latest
11+
runs-on: ${{ matrix.os }}
1212
strategy:
1313
fail-fast: true
1414
matrix:
@@ -39,9 +39,14 @@ jobs:
3939
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
4040
4141
- name: Install dependencies
42+
shell: bash
4243
run: |
43-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
44-
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
44+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
45+
if [ "${{ matrix.stability }}" = "prefer-lowest" ]; then
46+
composer update --prefer-lowest --prefer-dist --no-interaction --with="orchestra/canvas:^9.0"
47+
else
48+
composer update --prefer-stable --prefer-dist --no-interaction
49+
fi
4550
4651
- name: List Installed Dependencies
4752
run: composer show -D

0 commit comments

Comments
 (0)