Skip to content

[RFC] Bump the component to 4.0 #121

[RFC] Bump the component to 4.0

[RFC] Bump the component to 4.0 #121

Workflow file for this run

name: Static analysis
on:
pull_request: ~
defaults:
run:
shell: bash
jobs:
psalm:
name: Psalm
runs-on: Ubuntu-22.04
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
ini-values: "memory_limit=-1"
coverage: none
- name: Checkout target branch
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}
- name: Checkout PR
uses: actions/checkout@v4
- name: Install dependencies
run: |
composer remove --dev --no-update --no-interaction symfony/phpunit-bridge
composer require --no-update vimeo/psalm phpunit/phpunit:^9.6 psalm/plugin-phpunit
composer update --no-progress --ansi
git checkout -- composer.json
./vendor/bin/psalm --version
- name: Generate Psalm baseline
run: |
git checkout -m ${{ github.base_ref }}
./vendor/bin/psalm --set-baseline=.github/psalm/psalm.baseline.xml --no-progress
git checkout -m FETCH_HEAD
- name: Psalm
run: |
./vendor/bin/psalm --output-format=github --no-progress