Skip to content

Commit 7afaba9

Browse files
authored
Merge pull request #18 from nagels-tech/Psalm
Psalm implementation
2 parents fba075f + 237f7df commit 7afaba9

31 files changed

+2352
-334
lines changed

.github/workflows/cs-fixer.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ name: PHP CS Fixer
22

33
on:
44
push:
5-
branches:
6-
- main
7-
paths:
8-
- '**/*.php'
95
pull_request:
106
paths:
117
- '**/*.php'

.github/workflows/psalm.yml

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

.github/workflows/test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: CI Pipeline
22

33
on:
44
push:
5-
branches:
6-
- main
75
pull_request:
86
workflow_dispatch:
97

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
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"
1516

1617
},
1718
"autoload": {

0 commit comments

Comments
 (0)