Skip to content

Commit 9c0bb53

Browse files
authored
Retry install step to counter JIT bug (#287)
1 parent a5130bd commit 9c0bb53

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,20 @@ jobs:
4747
composer-${{ matrix.php-version }}-
4848
composer-
4949
50-
- name: Install dependencies
50+
- name: Remove non-test dependencies
5151
run: |
5252
composer remove --no-update --dev \
5353
phpstan/phpstan vimeo/psalm \
5454
infection/infection friendsofphp/php-cs-fixer php-coveralls/php-coveralls
55-
composer install --prefer-dist --no-interaction --no-progress
55+
56+
- name: Install dependencies
57+
uses: nick-fields/retry@v3
58+
with:
59+
timeout_seconds: 30
60+
max_attempts: 3
61+
retry_on: error
62+
command: |
63+
composer update --prefer-dist --no-interaction --no-progress
5664
5765
- name: Execute tests
5866
run: |
@@ -91,7 +99,7 @@ jobs:
9199
composer remove --no-update --dev \
92100
phpstan/phpstan vimeo/psalm \
93101
friendsofphp/php-cs-fixer
94-
composer install --prefer-dist --no-interaction --no-progress
102+
composer update --prefer-dist --no-interaction --no-progress
95103
96104
- name: Generate coverage
97105
run: |
@@ -160,7 +168,7 @@ jobs:
160168
- name: Install dependencies
161169
run: |
162170
composer remove --no-update --dev infection/infection
163-
composer install --prefer-dist --no-interaction --no-progress
171+
composer update --prefer-dist --no-interaction --no-progress
164172
165173
- name: Validate composer.json
166174
run: |

0 commit comments

Comments
 (0)