Skip to content

Commit d6bee78

Browse files
authored
Merge pull request #180 from nicacode/patch-1
ci: upgrade to actions/checkout@v4
2 parents 845bfd8 + 8b3354f commit d6bee78

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/static-analysis.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
steps:
3434
- name: "Checkout code"
35-
uses: "actions/checkout@v2"
35+
uses: "actions/checkout@v4"
3636

3737
- name: "Install PHP"
3838
uses: "shivammathur/setup-php@v2"
@@ -41,8 +41,12 @@ jobs:
4141
php-version: "${{ matrix.php-version }}"
4242
tools: "cs2pr"
4343

44-
- name: "Install dependencies with Composer"
45-
uses: "ramsey/composer-install@v1"
44+
- name: Install dependencies
45+
uses: nick-fields/retry@v2
46+
with:
47+
timeout_minutes: 5
48+
max_attempts: 5
49+
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
4650

47-
- name: "Run a static analysis with phpstan/phpstan"
48-
run: "vendor/bin/phpstan --error-format=checkstyle | cs2pr"
51+
- name: Execute type checking
52+
run: vendor/bin/phpstan --configuration="phpstan.neon.dist"

0 commit comments

Comments
 (0)