Skip to content

Commit d49d53f

Browse files
committed
Install Psalm & PHP CS
1 parent df9956a commit d49d53f

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/build.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
php: ['7.2', '7.3', '7.4', '8.0', '8.1']
22+
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
2323
composer: ['2']
2424
latest: [false]
2525
include:
26-
- php: 8.2
26+
- php: 8.3
2727
composer: 2
2828
latest: true
2929
runs-on: ubuntu-latest
@@ -72,7 +72,7 @@ jobs:
7272
strategy:
7373
fail-fast: false
7474
matrix:
75-
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
75+
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
7676
composer: ['2']
7777
needs: packaging
7878
runs-on: ubuntu-latest
@@ -98,9 +98,15 @@ jobs:
9898
- name: PHPStan
9999
run: phpstan --version
100100

101+
- name: Psalm
102+
run: psalm --version
103+
101104
- name: PHP Code Standard Fixer
102105
run: php-cs-fixer --version
103106

107+
- name: PHP Code Sniffer
108+
run: phpcs --version
109+
104110
- name: PHP Mess Detector
105111
run: phpmd --version
106112

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
ARG PHP_VERSION=8
1+
ARG PHP_VERSION=7.2
22
ARG COMPOSER_VERSION=2
33

44
FROM composer:${COMPOSER_VERSION} as composer
55

66
FROM php:${PHP_VERSION}-fpm-alpine
77

8-
ARG PHP_VERSION=8
98
ENV PHP_VERSION $PHP_VERSION
10-
ARG COMPOSER_VERSION=2
119
ENV COMPOSER_VERSION $COMPOSER_VERSION
1210

1311
## XDEBUG
@@ -37,6 +35,8 @@ RUN composer global require --prefer-dist \
3735
symfony/phpunit-bridge \
3836
friendsofphp/php-cs-fixer \
3937
rector/rector \
38+
vimeo/psalm \
39+
squizlabs/php_codesniffer=* \
4040
&& composer clear-cache
4141

4242
WORKDIR /var/www/composer

0 commit comments

Comments
 (0)