From 9d0abc35d2e3ef7952e3025901161ed39a88c8d4 Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Fri, 23 Jan 2026 13:38:32 +0100 Subject: [PATCH] Run Psalm in GHA --- .github/workflows/static-analysis.yml | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/static-analysis.yml diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml new file mode 100644 index 0000000..1b54c6f --- /dev/null +++ b/.github/workflows/static-analysis.yml @@ -0,0 +1,32 @@ +name: Static Analysis + +permissions: + contents: read + packages: read + +on: + push: + branches: + - main + pull_request: + +env: + PHP_VERSION: 8.4 + PSALM_VERSION: 6.14.3 + +jobs: + Psalm: + name: Psalm + runs-on: ubuntu-latest + steps: + - uses: shivammathur/setup-php@v2 + with: + php-version: ${{ env.PHP_VERSION }} + coverage: none + tools: composer:v2 + - uses: actions/checkout@v4 + - run: composer install --no-interaction --no-progress --ansi --no-scripts + - name: Run Psalm + run: | + docker pull --quiet ghcr.io/webfactory/psalm:$PSALM_VERSION + docker run --tty -v $(pwd):/app -v $HOME/cache:/cache ghcr.io/webfactory/psalm:$PSALM_VERSION --show-info=false --stats --output-format=github