Skip to content

Commit 615bebf

Browse files
Move Psalm to dedicated workflow
1 parent ee9a910 commit 615bebf

File tree

2 files changed

+36
-6
lines changed

2 files changed

+36
-6
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ jobs:
5858
- name: PHPUnit tests
5959
run: vendor/bin/phpunit
6060

61-
- name: Static Analysis
62-
run: vendor/bin/psalm
63-
6461
modern:
6562
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
6663
runs-on: ${{ matrix.operating-system }}
@@ -85,6 +82,3 @@ jobs:
8582
run: composer install
8683
- name: PHPUnit tests
8784
run: vendor/bin/phpunit
88-
89-
- name: Static Analysis
90-
run: vendor/bin/psalm

.github/workflows/psalm.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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: ['8.4']
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Rename psalm.xml to psalm-old.xml
18+
run: mv psalm.xml psalm-old.xml
19+
20+
- name: Rename psalm-new.xml to psalm.xml
21+
run: mv psalm-new.xml psalm.xml
22+
23+
- name: Setup PHP
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php-versions }}
27+
tools: psalm:6
28+
coverage: none
29+
30+
- name: Install Composer dependencies
31+
uses: "ramsey/composer-install@v3"
32+
with:
33+
composer-options: --no-dev
34+
35+
- name: Static Analysis
36+
run: psalm

0 commit comments

Comments
 (0)