Skip to content

Bump codecov/codecov-action from 3 to 4 #138

Bump codecov/codecov-action from 3 to 4

Bump codecov/codecov-action from 3 to 4 #138

Workflow file for this run

name: "PHPStan"
on:
push:
pull_request:
env:
COMPOSER_FLAGS: "--ansi --no-interaction --prefer-dist"
SYMFONY_PHPUNIT_VERSION: ""
permissions:
contents: read
jobs:
tests:
name: "PHPStan"
runs-on: ubuntu-latest
strategy:
matrix:
include:
- php-version: "8.1"
fail-fast: false
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
ini-values: "memory_limit=-1"
php-version: "${{ matrix.php-version }}"
- name: "Determine composer cache directory"
id: "determine-composer-cache-directory"
run: "echo \"directory=$(composer config cache-dir)\" >> $GITHUB_OUTPUT"
- name: "Cache dependencies installed with composer"
uses: "actions/cache@v3"
with:
path: "${{ steps.determine-composer-cache-directory.outputs.directory }}"
key: "php-${{ matrix.php-version }}-symfony-php-unit-version-${{ env.SYMFONY_PHPUNIT_VERSION }}-${{ hashFiles('**/composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-symfony-php-unit-version-${{ env.SYMFONY_PHPUNIT_VERSION }}"
- name: "Install dependencies"
run: "composer config platform --unset && composer install ${{ env.COMPOSER_FLAGS }}"
- name: "Run PHPStan"
run: "composer test:phpstan"