From 7654ed27b807c18b9edbd657a1afe5139169be00 Mon Sep 17 00:00:00 2001 From: Michael Vasseur Date: Fri, 29 Nov 2024 19:10:02 +0100 Subject: [PATCH] Show the PHPStan version Also pin to the second to last released version for the GHA as the last one crashes. (cherry picked from commit bf67a46e63546686de4fbd1135847069f6de2f82) --- .github/workflows/phpstan.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/phpstan.yml diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml new file mode 100644 index 0000000000..3d7b4fd952 --- /dev/null +++ b/.github/workflows/phpstan.yml @@ -0,0 +1,28 @@ +name: Run PHPStan +on: + merge_group: + pull_request: + branches: + - main + - '[0-9]+.[0-9]+' + +jobs: + phpstan: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup composer dependencies + run: .github/jobs/composer_setup.sh + - name: Show the phpstan version + run: webapp/vendor/phpstan/phpstan/phpstan --version + - uses: php-actions/phpstan@v3.0.2 + with: + configuration: webapp/phpstan.dist.neon + path: webapp/src webapp/tests + php_extensions: gd intl mysqli pcntl zip + autoload_file: webapp/vendor/autoload.php + version: composer + - uses: actions/upload-artifact@v4 + if: always() + with: + path: /tmp/artifacts