Skip to content

Commit

Permalink
Install Psalm & PHP CS
Browse files Browse the repository at this point in the history
  • Loading branch information
yosrib committed Apr 7, 2024
1 parent df9956a commit d49d53f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d49d53f

Please sign in to comment.