Skip to content

Merge pull request #393 from FriendsOfCake/phpstan #121

Merge pull request #393 from FriendsOfCake/phpstan

Merge pull request #393 from FriendsOfCake/phpstan #121

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- '*'
permissions:
contents: read
jobs:
testsuite:
uses: cakephp/.github/.github/workflows/[email protected]
secrets: inherit
cs-stan:
name: Coding Standard & Static Analysis
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: mbstring, intl
coverage: none
tools: cs2pr, vimeo/psalm:5, phpstan:1.10
- name: Composer Install
run: composer install
- name: Run phpcs
run: vendor/bin/phpcs --report=checkstyle src/ tests/ | cs2pr
- name: Run psalm
if: always()
run: psalm --output-format=github
- name: Run phpstan
if: always()
run: phpstan analyse