Skip to content

do not use set-output in github actions #295

do not use set-output in github actions

do not use set-output in github actions #295

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
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
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