Skip to content

Commit 02fd6de

Browse files
committed
chore: update workflows for CI
1 parent b0f6705 commit 02fd6de

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/laravel.yml renamed to .github/workflows/testing.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Laravel
1+
name: Testing
22

33
on:
44
push:
@@ -152,18 +152,15 @@ jobs:
152152
key: ${{ runner.os }}-composer-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.json') }}
153153
restore-keys: ${{ runner.os }}-composer-laravel-
154154

155-
- name: Remove ergebnis/composer-normalize, laravel/pint and phpstan/phpstan to prevent platform issue
155+
- name: Remove static analysis packages to prevent platform issues
156156
run: composer remove --dev --no-update ergebnis/composer-normalize laravel/pint phpstan/phpstan
157157

158-
- name: Add illuminate/support to restrict Laravel testing version
159-
run: composer require --no-update illuminate/support:~${{ matrix.laravel }}
160-
161158
- name: Restrict phpunit/phpunit version to fix dependencies issue for Laravel <= 5.4
162159
if: ${{ contains(fromJSON('["5.4.0", "5.3.0", "5.2.0", "5.1.0"]'), matrix.laravel) }}
163160
run: composer require --dev --no-update phpunit/phpunit:~5.7
164161

165-
- name: Install dependencies
166-
run: composer update --no-interaction --no-progress
162+
- name: Install dependencies with specific Laravel version
163+
run: composer update --with illuminate/support:~${{ matrix.laravel }} --no-progress --no-interaction
167164

168165
- name: Run tests
169166
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)