[CI] Set php extension in github action #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: QA | |
on: | |
push: | |
branches: | |
- master | |
- '[1-9].[0-9]+.x' | |
- 'feature-[a-z]+' | |
pull_request: ~ | |
jobs: | |
qa: | |
name: Code-Quality-Checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: php-actions/composer@v6 | |
with: | |
php_version: "8.2" | |
# php_extensions: fileinfo json mbstring sodium openssl pgsql pcre simplexml tokenizer xml zip imap soap bcmath ldap mongodb | |
php_extensions: ctype curl gd intl | |
args: --no-plugins | |
- name: Php cs fixer | |
run: php ./vendor/bin/php-cs-fixer fix --diff --dry-run src | |
- name: Phpstan | |
run: php ./vendor/bin/phpstan --memory-limit=1G analyse |