diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 59f0a2c..68eede7 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -32,7 +32,7 @@ jobs: steps: - name: "Checkout code" - uses: "actions/checkout@v2" + uses: "actions/checkout@v4" - name: "Install PHP" uses: "shivammathur/setup-php@v2" @@ -41,8 +41,12 @@ jobs: php-version: "${{ matrix.php-version }}" tools: "cs2pr" - - name: "Install dependencies with Composer" - uses: "ramsey/composer-install@v1" + - name: Install dependencies + uses: nick-fields/retry@v2 + with: + timeout_minutes: 5 + max_attempts: 5 + command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress - - name: "Run a static analysis with phpstan/phpstan" - run: "vendor/bin/phpstan --error-format=checkstyle | cs2pr" + - name: Execute type checking + run: vendor/bin/phpstan --configuration="phpstan.neon.dist"