Skip to content

Commit 947c260

Browse files
authored
Merge pull request #795 from laravel/driesvints-patch-1
Update tests.yml
2 parents df6391c + d14e6b7 commit 947c260

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,18 @@ jobs:
2626
- name: Checkout code
2727
uses: actions/checkout@v2
2828

29-
- name: Cache dependencies
30-
uses: actions/cache@v1
31-
with:
32-
path: ~/.composer/cache/files
33-
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.phpunit }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
34-
3529
- name: Setup PHP
3630
uses: shivammathur/setup-php@v2
3731
with:
3832
php-version: ${{ matrix.php }}
3933
extensions: dom, curl, libxml, mbstring, zip
34+
tools: composer:v2
4035
coverage: none
4136

4237
- name: Install dependencies
43-
run: composer require "illuminate/contracts=${{ matrix.laravel }}" "phpunit/phpunit:${{ matrix.phpunit }}" --dev --prefer-dist --no-interaction
38+
run: |
39+
composer require "illuminate/contracts:${{ matrix.laravel }}" "phpunit/phpunit:${{ matrix.phpunit }}" --dev --no-update
40+
composer update --prefer-dist --no-interaction --no-progress
4441
4542
- name: Execute tests
4643
run: vendor/bin/phpunit --verbose

0 commit comments

Comments
 (0)