Skip to content

fix: replace splitsh-action with inline steps for checkout v6 #16

fix: replace splitsh-action with inline steps for checkout v6

fix: replace splitsh-action with inline steps for checkout v6 #16

Workflow file for this run

name: "Static Analysis"
on:
pull_request:
push:
branches:
- "main"
jobs:
static-analysis-phpstan:
name: "PHPStan - ${{ matrix.package }}"
runs-on: "ubuntu-24.04"
strategy:
fail-fast: false
matrix:
package:
- "math"
- "money"
defaults:
run:
working-directory: "${{ matrix.package }}"
steps:
- name: "Checkout code"
uses: "actions/checkout@v6"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "8.4"
tools: "cs2pr"
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v3"
with:
working-directory: "${{ matrix.package }}"
- name: "Run a static analysis with phpstan/phpstan"
run: "vendor/bin/phpstan analyse --error-format=checkstyle | cs2pr"