Skip to content

Commit 247ac7a

Browse files
Separate Psalm out on old PHP
1 parent 4256825 commit 247ac7a

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
ini-values: max_execution_time=600, memory_limit=256M, error_reporting=-1, display_errors=On
2424
coverage: none
2525

26+
- name: Remove psalm
27+
run: composer remove --dev vimeo/psalm
28+
2629
- name: Install Composer dependencies
2730
run: composer update
2831

.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
2+
3+
on: [push]
4+
5+
jobs:
6+
psalm:
7+
name: Psalm on PHP ${{ matrix.php-versions }}
8+
runs-on: ${{ matrix.operating-system }}
9+
strategy:
10+
matrix:
11+
operating-system: ['ubuntu-latest']
12+
php-versions: ['7.4']
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup PHP
18+
uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: ${{ matrix.php-versions }}
21+
tools: psalm:4
22+
coverage: none
23+
24+
- name: Install Composer dependencies
25+
uses: "ramsey/composer-install@v3"
26+
with:
27+
composer-options: --no-dev
28+
29+
- name: Put Psalm config in place
30+
run: cp psalm-above-3.xml psalm.xml
31+
32+
- name: Static Analysis
33+
run: psalm

0 commit comments

Comments
 (0)