Skip to content

Commit 29e9fee

Browse files
PratikshaPratiksha
authored andcommitted
winp
1 parent 940a0a8 commit 29e9fee

13 files changed

+2280
-591
lines changed

.github/workflows/psalm.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Psalm Static Analysis
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '**/*.php'
9+
pull_request:
10+
paths:
11+
- '**/*.php'
12+
workflow_dispatch:
13+
14+
jobs:
15+
psalm:
16+
name: Run Psalm
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v3
22+
23+
- name: Set up PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: 8.3
27+
tools: composer, psalm
28+
29+
- name: Install dependencies
30+
run: composer install --no-progress --prefer-dist
31+
32+
- name: Run Psalm
33+
run: vendor/bin/psalm --output-format=github

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
},
1212
"require-dev": {
1313
"phpunit/phpunit": "^11.0",
14-
"friendsofphp/php-cs-fixer": "^3.68"
14+
"friendsofphp/php-cs-fixer": "^3.68",
15+
"vimeo/psalm": "^6.5"
16+
1517
},
1618
"autoload": {
1719
"psr-4": {

0 commit comments

Comments
 (0)