Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the retry action for composer steps #6409

Merged
merged 3 commits into from Aug 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 22 additions & 6 deletions .github/workflows/tests.yml
Expand Up @@ -50,21 +50,37 @@ jobs:
coverage: none

- name: Set PHP 7.4 Mockery
run: composer require "mockery/mockery >=1.2.3" --no-interaction --no-update
uses: nick-invision/retry@v2
with:
timeout_minutes: 5
max_attempts: 5
command: composer require "mockery/mockery >=1.2.3" --no-interaction --no-update
if: matrix.php >= 7.4 && matrix.php <8.0

- name: Set PHP 8 Mockery
run: composer require "mockery/mockery >=1.3.3" --no-interaction --no-update
uses: nick-invision/retry@v2
with:
timeout_minutes: 5
max_attempts: 5
command: composer require "mockery/mockery >=1.3.3" --no-interaction --no-update
if: matrix.php >= 8.0

- name: Set PHP 8.1 Testbench
run: composer require "orchestra/testbench ^6.22.0" --no-interaction --no-update
uses: nick-invision/retry@v2
with:
timeout_minutes: 5
max_attempts: 5
command: composer require "orchestra/testbench ^6.22.0" --no-interaction --no-update
if: matrix.laravel == '8.*' && matrix.php >= 8.1

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.framework }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
uses: nick-invision/retry@v2
with:
timeout_minutes: 5
max_attempts: 5
command: |
composer require "laravel/framework:${{ matrix.framework }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction

- name: Execute tests
run: vendor/bin/phpunit
Expand Down