Skip to content

Commit 8b5e7e7

Browse files
committed
fix(workflows): prevent orchestra/testbench dependency placement issues
1 parent d67a741 commit 8b5e7e7

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

.github/workflows/code-quality.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ jobs:
2424

2525
- name: Install dependencies
2626
run: |
27-
composer require "laravel/framework:^11.0|^12.0" --no-interaction --no-update
28-
composer require --dev "orchestra/testbench:^9.0|^10.0" --no-interaction --no-update
29-
composer update --prefer-stable --prefer-dist --no-interaction
27+
composer install --prefer-stable --prefer-dist --no-interaction
3028
3129
- name: Run PHPStan
3230
run: vendor/bin/phpstan analyse --memory-limit=2G

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ jobs:
2525

2626
- name: Install dependencies
2727
run: |
28-
composer require "laravel/framework:^11.0|^12.0" --no-interaction --no-update
29-
composer require --dev "orchestra/testbench:^9.0|^10.0" --no-interaction --no-update
30-
composer update --prefer-stable --prefer-dist --no-interaction
28+
composer install --prefer-stable --prefer-dist --no-interaction
3129
3230
- name: Run tests
3331
run: vendor/bin/pest

.github/workflows/tests.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ jobs:
4242
4343
- name: Install dependencies
4444
run: |
45-
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
46-
composer require --dev "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
47-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
45+
composer install --${{ matrix.dependency-version }} --prefer-dist --no-interaction
4846
4947
- name: List Installed Dependencies
5048
run: composer show -D
@@ -75,9 +73,7 @@ jobs:
7573

7674
- name: Install dependencies
7775
run: |
78-
composer require "laravel/framework:^11.0|^12.0" --no-interaction --no-update
79-
composer require --dev "orchestra/testbench:^9.0|^10.0" --no-interaction --no-update
80-
composer update --prefer-stable --prefer-dist --no-interaction
76+
composer install --prefer-stable --prefer-dist --no-interaction
8177
8278
- name: Execute tests with coverage
8379
run: |

0 commit comments

Comments
 (0)