Skip to content

Commit

Permalink
Remove Psalm job
Browse files Browse the repository at this point in the history
We have decided to stop running two static analysers on our repositories,
because of the extra maintenance it causes to us.
  • Loading branch information
greg0ire committed Oct 8, 2024
1 parent d29f373 commit 12a76f4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 37 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,36 +52,3 @@ jobs:

- name: "Run a static analysis with phpstan/phpstan"
run: "vendor/bin/phpstan analyse -v"

psalm:
name: "Psalm"
runs-on: "ubuntu-22.04"

strategy:
matrix:
php-version:
- "${{ inputs.php-version }}"

steps:
- name: "Checkout code"
uses: "actions/checkout@v4"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"

- name: "Set COMPOSER_ROOT_VERSION"
run: |
echo "COMPOSER_ROOT_VERSION=${{ inputs.composer-root-version }}" >> $GITHUB_ENV
if: "${{ inputs.composer-root-version }}"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "highest"
composer-options: "${{ inputs.composer-options }}"

- name: "Run a static analysis with vimeo/psalm"
run: "vendor/bin/psalm --show-info=false --stats --output-format=github --threads=$(nproc)"
3 changes: 1 addition & 2 deletions workflow-templates/static-analysis.properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"PHP"
],
"filePatterns": [
"^phpstan\\.neon(?:\\.dist)$",
"^psalm\\.xml$"
"^phpstan\\.neon(?:\\.dist)$"
]
}
2 changes: 0 additions & 2 deletions workflow-templates/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
- "composer.*"
- "src/**" # but some packages use lib
- "phpstan*"
- "psalm*"
- "tests/**"
push:
branches:
Expand All @@ -20,7 +19,6 @@ on:
- "composer.*"
- "src/**" # but some packages use lib
- "phpstan*"
- "psalm*"
- "tests/**"

jobs:
Expand Down

0 comments on commit 12a76f4

Please sign in to comment.