Skip to content
Open
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
36 changes: 36 additions & 0 deletions .github/workflows/php-Psalm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: PHP - Psalm

on:
push:
branches:
- main
- dev
- staging
pull_request:
branches:
- main
- dev
- staging

jobs:
Psalm:
runs-on: ubuntu-latest

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4' # Or your desired PHP version
extensions: mbstring, pdo_mysql # Add necessary extensions
ini-values: post_max_size=256M, upload_max_filesize=256M
coverage: none

- name: Install Composer dependencies
run: composer install --no-interaction --no-progress

- name: Run Psalm
continue-on-error: true
run: ./vendor/bin/psalm --output-format=github --shepherd
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"symfony/mailgun-mailer": "^7.3"
},
"require-dev": {
"barryvdh/laravel-ide-helper": "^3.6",
"barryvdh/laravel-ide-helper": "^3.5",
"fakerphp/faker": "^1.23",
"larastan/larastan": "^3.0",
"laravel/pail": "^1.1",
Expand All @@ -46,7 +46,8 @@
"nunomaduro/collision": "^8.1",
"pestphp/pest": "^3.0",
"phpstan/phpstan": "^2.1",
"phpunit/phpunit": "^11.0.1"
"phpunit/phpunit": "^11.0.1",
"psalm/plugin-laravel": "^3.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading
Loading