Skip to content

Internal cache if descriptionGetter not available (#17) #70

Internal cache if descriptionGetter not available (#17)

Internal cache if descriptionGetter not available (#17) #70

Workflow file for this run

# https://docs.github.com/en/actions
name: "Integrate"
on:
pull_request: null
push:
branches:
- "main"
jobs:
static-code-analysis:
name: "Static Code Analysis"
runs-on: "ubuntu-latest"
strategy:
matrix:
php-version:
- "8.2"
dependencies:
- "locked"
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@2.24.0"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
- name: "Set up problem matchers for PHP"
run: "echo \"::add-matcher::${{ runner.tool_cache }}/php.json\""
- name: "Install ${{ matrix.dependencies }} dependencies with composer"
uses: "ramsey/composer-install@2.2.0"
with:
dependency-versions: "${{ matrix.dependencies }}"
- name: "Create cache directory for phpstan/phpstan"
run: "mkdir -p .build/phpstan"
- name: "Cache cache directory for phpstan/phpstan"
uses: "actions/cache@v3"
with:
path: ".build/phpstan"
key: "php-${{ matrix.php-version }}-phpstan-${{ github.sha }}"
restore-keys: "php-${{ matrix.php-version }}-phpstan-"
- name: "Run phpstan/phpstan"
run: "vendor/bin/phpstan analyse --configuration=phpstan.neon.dist --memory-limit=-1"