Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/cs-fixer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: PHP CS Fixer

on:
push:
branches:
- main
paths:
- '**/*.php'
pull_request:
paths:
- '**/*.php'
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Psalm Static Analysis

on:
push:
pull_request:
paths:
- '**/*.php'
workflow_dispatch:

jobs:
psalm:
name: Run Psalm
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer, psalm

- name: Install dependencies
run: composer install --no-progress --prefer-dist

- name: Run Psalm
run: vendor/bin/psalm --output-format=github
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: CI Pipeline

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
},
"require-dev": {
"phpunit/phpunit": "^11.0",
"friendsofphp/php-cs-fixer": "^3.68"
"friendsofphp/php-cs-fixer": "^3.68",
"vimeo/psalm": "^6.5"

},
"autoload": {
Expand Down
Loading
Loading