Skip to content

Bump actions/cache from 3 to 4 #286

Bump actions/cache from 3 to 4

Bump actions/cache from 3 to 4 #286

Workflow file for this run

name: Static analysis
on:
pull_request:
push:
branches-ignore: [master]
jobs:
psalm:
name: Psalm — PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.1', '8.3']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- name: Get Composer cache directory path
id: composer-cache-dir
run: echo "::set-output name=path::$(composer config cache-files-dir)"
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache-dir.outputs.path }}
key: composer-${{ hashFiles('composer.lock') }}
restore-keys: composer-
- name: Psalm cache
uses: actions/cache@v4
with:
path: .cache/psalm
key: psalm-${{ github.sha }}
restore-keys: psalm-
- name: Install Composer dependencies
run: composer install
- name: Run Psalm
run: vendor/bin/psalm --output-format=github --no-progress