File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010 - name : Set changed files
1111 run : |
12- echo "PKG_PHP_CHANGED_FILES=$(./bin/git-find-changed-php-files.sh "${{ env.GITHUB_BASE_REF }}.. ${{ env.GITHUB_SHA }}")"
12+ echo "PKG_PHP_CHANGED_FILES=$(./bin/git-find-changed-php-files.sh "${{ env.GITHUB_BASE_REF }} ${{ env.GITHUB_SHA }}")"
1313
1414 - name : Get Composer Cache Directory
1515 id : composer-cache
3333 - run : php ./bin/fix-symfony-version.php "4.3.*"
3434 - run : composer install --no-progress
3535 - run : sed -i 's/525568/16777471/' vendor/kwn/php-rdkafka-stubs/stubs/constants.php
36- - run : docker run --workdir="/mqdev" -v "`pwd`:/mqdev" --rm enqueue/dev:latest php -d memory_limit=1024M bin/phpstan analyse -l 1 -c phpstan.neon --error-format=github -- ${PKG_PHP_CHANGED_FILES[@]}
36+ - run : if [ ! -z "${PKG_PHP_CHANGED_FILES}" ]; then docker run --workdir="/mqdev" -v "`pwd`:/mqdev" --rm enqueue/dev:latest php -d memory_limit=1024M bin/phpstan analyse -l 1 -c phpstan.neon --error-format=github -- ${PKG_PHP_CHANGED_FILES[@]} ; fi
3737
3838 code_style_check :
3939 name : Code style check
4343
4444 - name : Set changed files
4545 run : |
46- echo "PKG_PHP_CHANGED_FILES=$(./bin/git-find-changed-php-files.sh "${{ env.GITHUB_BASE_REF }}.. ${{ env.GITHUB_SHA }}")"
46+ echo "PKG_PHP_CHANGED_FILES=$(./bin/git-find-changed-php-files.sh "${{ env.GITHUB_BASE_REF }} ${{ env.GITHUB_SHA }}")"
4747
4848 - name : Get Composer Cache Directory
4949 id : composer-cache
6767 - run : php ./bin/fix-symfony-version.php "4.3.*"
6868 - run : composer install --no-progress
6969 - run : sed -i 's/525568/16777471/' vendor/kwn/php-rdkafka-stubs/stubs/constants.php
70- - run : ./bin/php-cs-fixer fix --config=.php_cs.php --no-interaction --dry-run --diff -v --path-mode=intersection -- ${PKG_PHP_CHANGED_FILES[@]}
70+ - run : if [ ! -z "${PKG_PHP_CHANGED_FILES}" ]; then ./bin/php-cs-fixer fix --config=.php_cs.php --no-interaction --dry-run --diff -v --path-mode=intersection -- ${PKG_PHP_CHANGED_FILES[@]} ; fi
7171
7272 tests :
7373 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments