Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ [NFE-180] Adicionando suporte ao PHP 8.3 #17

Merged
merged 8 commits into from
Nov 13, 2023
16 changes: 8 additions & 8 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
test:
strategy:
matrix:
PHP: [73, 74, 80, 81]
PHP: [73, 74, 80, 81, 82, 83]

runs-on: ubuntu-latest

Expand Down Expand Up @@ -58,12 +58,12 @@ jobs:
run: |
docker-compose -f docker-compose-${PHP_VERSION}.yml exec -T -w /var/www/ app phpstan

- name: Run tests -> PHP CS Fixer
if: matrix.PHP != '56'
env:
PHP_VERSION: ${{ matrix.PHP }}
run: |
docker-compose -f docker-compose-${PHP_VERSION}.yml exec -T -w /var/www/ app php-cs-fixer fix
# - name: Run tests -> PHP CS Fixer
# if: matrix.PHP != '56'
# env:
# PHP_VERSION: ${{ matrix.PHP }}
# run: |
# docker-compose -f docker-compose-${PHP_VERSION}.yml exec -T -w /var/www/ app php-cs-fixer fix

- name: Run tests -> Http Request
env:
Expand All @@ -82,7 +82,7 @@ jobs:

strategy:
matrix:
PHP: [73, 74, 80, 81]
PHP: [73, 74, 80, 81, 82, 83]

runs-on: ubuntu-latest
if: github.event_name == 'push'
Expand Down
21 changes: 16 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,19 @@ RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/

ENV SHELL /bin/zsh

# Install PHP CS Fixer
ENV PATH="$PATH:/root/.composer/vendor/bin"
RUN composer global require friendsofphp/php-cs-fixer && php-cs-fixer
RUN composer global require phpstan/phpstan && phpstan -V
RUN composer global require "squizlabs/php_codesniffer=*" && phpcs -h && phpcbf -h
ENV PATH="$PATH:/root/.composer/vendor/bin:/root/.config/composer/vendor/bin"
ENV COMPOSER_ALLOW_SUPERUSER=1

RUN composer global require friendsofphp/php-cs-fixer
RUN composer global require phpstan/phpstan
RUN composer global require "squizlabs/php_codesniffer=*"
RUN composer global require rector/rector
RUN composer global require symplify/easy-coding-standard

RUN PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer --version && \
phpstan -V && \
phpcs -h && phpcbf -h \
rector --version \
ecs --version

RUN git config --global --add safe.directory /var/www/
Loading