Skip to content

Commit a27650b

Browse files
Retry composer steps
1 parent c803c81 commit a27650b

File tree

2 files changed

+30
-6
lines changed

2 files changed

+30
-6
lines changed

.github/workflows/static.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,18 @@ jobs:
2222
coverage: none
2323

2424
- name: Install Dependencies
25-
run: composer update --no-interaction --no-progress
25+
uses: nick-invision/retry@v1
26+
with:
27+
timeout_minutes: 5
28+
max_attempts: 5
29+
command: composer update --no-interaction --no-progress
2630

2731
- name: Install PHPStan
28-
run: composer bin phpstan update --no-interaction --no-progress
32+
uses: nick-invision/retry@v1
33+
with:
34+
timeout_minutes: 5
35+
max_attempts: 5
36+
command: composer bin phpstan update --no-interaction --no-progress
2937

3038
- name: Execute PHPStan
3139
run: vendor/bin/phpstan analyze --no-progress
@@ -47,10 +55,18 @@ jobs:
4755
coverage: none
4856

4957
- name: Install Dependencies
50-
run: composer update --no-interaction --no-progress
58+
uses: nick-invision/retry@v1
59+
with:
60+
timeout_minutes: 5
61+
max_attempts: 5
62+
command: composer update --no-interaction --no-progress
5163

5264
- name: Install Psalm
53-
run: composer bin psalm update --no-interaction --no-progress
65+
uses: nick-invision/retry@v1
66+
with:
67+
timeout_minutes: 5
68+
max_attempts: 5
69+
command: composer bin psalm update --no-interaction --no-progress
5470

5571
- name: Execute Psalm
5672
run: vendor/bin/psalm --no-progress --output-format=github

.github/workflows/tests.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,18 @@ jobs:
2929
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
3030

3131
- name: Install Dependencies
32-
run: composer update --prefer-dist --no-interaction --no-progress
32+
uses: nick-invision/retry@v1
33+
with:
34+
timeout_minutes: 5
35+
max_attempts: 5
36+
command: composer update --no-interaction --no-progress
3337

3438
- name: Install PHPUnit
35-
run: composer bin phpunit update --no-interaction --no-progress
39+
uses: nick-invision/retry@v1
40+
with:
41+
timeout_minutes: 5
42+
max_attempts: 5
43+
command: composer bin phpunit update --no-interaction --no-progress
3644

3745
- name: Execute PHPUnit
3846
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)