From d49d53f0e405d11cc3d782db76b32acb7ed32919 Mon Sep 17 00:00:00 2001 From: Yosri BAHRI Date: Sun, 7 Apr 2024 04:54:40 +0200 Subject: [PATCH] Install Psalm & PHP CS --- .github/workflows/build.yaml | 12 +++++++++--- Dockerfile | 6 +++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index cc8e04f..a73594a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -19,11 +19,11 @@ jobs: strategy: fail-fast: false matrix: - php: ['7.2', '7.3', '7.4', '8.0', '8.1'] + php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] composer: ['2'] latest: [false] include: - - php: 8.2 + - php: 8.3 composer: 2 latest: true runs-on: ubuntu-latest @@ -72,7 +72,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] + php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] composer: ['2'] needs: packaging runs-on: ubuntu-latest @@ -98,9 +98,15 @@ jobs: - name: PHPStan run: phpstan --version + - name: Psalm + run: psalm --version + - name: PHP Code Standard Fixer run: php-cs-fixer --version + - name: PHP Code Sniffer + run: phpcs --version + - name: PHP Mess Detector run: phpmd --version diff --git a/Dockerfile b/Dockerfile index 40c05ba..85b8843 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,11 @@ -ARG PHP_VERSION=8 +ARG PHP_VERSION=7.2 ARG COMPOSER_VERSION=2 FROM composer:${COMPOSER_VERSION} as composer FROM php:${PHP_VERSION}-fpm-alpine -ARG PHP_VERSION=8 ENV PHP_VERSION $PHP_VERSION -ARG COMPOSER_VERSION=2 ENV COMPOSER_VERSION $COMPOSER_VERSION ## XDEBUG @@ -37,6 +35,8 @@ RUN composer global require --prefer-dist \ symfony/phpunit-bridge \ friendsofphp/php-cs-fixer \ rector/rector \ + vimeo/psalm \ + squizlabs/php_codesniffer=* \ && composer clear-cache WORKDIR /var/www/composer