From 4b328b8b9580821db3159cabb04093b87820191e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Tue, 8 Oct 2024 15:06:18 +0200 Subject: [PATCH] Remove Psalm job We have decided to stop running two static analysers on our repositories, because of the extra maintenance it causes to us. --- .github/workflows/static-analysis.yml | 57 --------------------------- 1 file changed, 57 deletions(-) delete mode 100644 .github/workflows/static-analysis.yml diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml deleted file mode 100644 index c42a05f..0000000 --- a/.github/workflows/static-analysis.yml +++ /dev/null @@ -1,57 +0,0 @@ - -name: "Static Analysis" - -on: - workflow_call: - inputs: - php-version: - description: "The PHP version to use when running the job" - default: "8.4" - required: false - type: "string" - composer-root-version: - description: "The version of the package being tested, in case of circular dependencies." - required: false - type: "string" - composer-options: - description: "Additional flags for the composer install command." - default: "--prefer-dist" - required: false - type: "string" - -jobs: - phpstan: - name: "PHPStan (deprecated in favor of phpstan.yml)" - uses: "./.github/workflows/phpstan.yml" - with: - php-version: "${{ inputs.php-version }}" - composer-root-version: "${{ inputs.composer-root-version }}" - composer-options: "${{ inputs.composer-options }}" - - psalm: - name: "Psalm (PHP: ${{ inputs.php-version }}, deprecated without a replacement)" - runs-on: "ubuntu-22.04" - - steps: - - name: "Checkout code" - uses: "actions/checkout@v4" - - - name: "Install PHP" - uses: "shivammathur/setup-php@v2" - with: - coverage: "none" - php-version: "${{ inputs.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)"