Skip to content

Commit c379678

Browse files
authored
Run Psalm in GHA (#2)
1 parent 4160736 commit c379678

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Static Analysis
2+
3+
permissions:
4+
contents: read
5+
packages: read
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
pull_request:
12+
13+
env:
14+
PHP_VERSION: 8.4
15+
PSALM_VERSION: 6.14.3
16+
17+
jobs:
18+
Psalm:
19+
name: Psalm
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ env.PHP_VERSION }}
25+
coverage: none
26+
tools: composer:v2
27+
- uses: actions/checkout@v4
28+
- run: composer install --no-interaction --no-progress --ansi --no-scripts
29+
- name: Run Psalm
30+
run: |
31+
docker pull --quiet ghcr.io/webfactory/psalm:$PSALM_VERSION
32+
docker run --tty -v $(pwd):/app -v $HOME/cache:/cache ghcr.io/webfactory/psalm:$PSALM_VERSION --show-info=false --stats --output-format=github

0 commit comments

Comments
 (0)