Skip to content

Commit 2bbb357

Browse files
Auto-retry composer steps
1 parent 5fcbc55 commit 2bbb357

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

.github/workflows/static.yml

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

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

2730
- name: Install PHPStan
28-
run: composer bin phpstan update --no-interaction --no-progress
31+
uses: nick-invision/retry@v1
32+
timeout_minutes: 5
33+
max_attempts: 5
34+
command: composer bin phpstan update --no-interaction --no-progress
2935

3036
- name: Execute PHPStan
3137
run: vendor/bin/phpstan analyze --no-progress
@@ -47,10 +53,16 @@ jobs:
4753
coverage: none
4854

4955
- name: Install Dependencies
50-
run: composer update --no-interaction --no-progress
56+
uses: nick-invision/retry@v1
57+
timeout_minutes: 5
58+
max_attempts: 5
59+
command: composer update --no-interaction --no-progress
5160

5261
- name: Install Psalm
53-
run: composer bin psalm update --no-interaction --no-progress
62+
uses: nick-invision/retry@v1
63+
timeout_minutes: 5
64+
max_attempts: 5
65+
command: composer bin psalm update --no-interaction --no-progress
5466

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

.github/workflows/tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,16 @@ 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+
timeout_minutes: 5
34+
max_attempts: 5
35+
command: composer update --prefer-dist --no-interaction --no-progress
3336

3437
- name: Install PHPUnit
35-
run: composer bin phpunit update --no-interaction --no-progress
38+
uses: nick-invision/retry@v1
39+
timeout_minutes: 5
40+
max_attempts: 5
41+
command: composer bin phpunit update --no-interaction --no-progress
3642

3743
- name: Execute PHPUnit
3844
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)