Skip to content

Commit

Permalink
chore: update workflows for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bepsvpt committed Mar 17, 2024
1 parent b0f6705 commit 02fd6de
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/laravel.yml → .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Laravel
name: Testing

on:
push:
Expand Down Expand Up @@ -152,18 +152,15 @@ jobs:
key: ${{ runner.os }}-composer-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-laravel-

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

- name: Add illuminate/support to restrict Laravel testing version
run: composer require --no-update illuminate/support:~${{ matrix.laravel }}

- name: Restrict phpunit/phpunit version to fix dependencies issue for Laravel <= 5.4
if: ${{ contains(fromJSON('["5.4.0", "5.3.0", "5.2.0", "5.1.0"]'), matrix.laravel) }}
run: composer require --dev --no-update phpunit/phpunit:~5.7

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

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

0 comments on commit 02fd6de

Please sign in to comment.