Skip to content

Commit

Permalink
🔀 Merge pull request #17 from likesistemas/feature/NFE-180_v2
Browse files Browse the repository at this point in the history
✨ [NFE-180] Adicionando suporte ao PHP 8.3
  • Loading branch information
ricardoapaes authored Nov 13, 2023
2 parents 0e5ccdb + 9f9d515 commit 24d48e5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 13 deletions.
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/

0 comments on commit 24d48e5

Please sign in to comment.