Skip to content

Commit

Permalink
TMP: disable CS check
Browse files Browse the repository at this point in the history
  • Loading branch information
liulka-oxid committed Jan 4, 2024
1 parent de6609e commit 250323f
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,27 +91,27 @@ jobs:
$RUN_PHP \
composer install --no-interaction
- name: Prepare for PHP_CS check
run: |
cd source/eshop_ce/vendor/oxid-esales/twig-component
git diff --name-only origin/${{ github.ref_name }} HEAD~1 | grep '\.php$' >changed-files.txt || true
if [[ -f "changed-files.txt" && -s "changed-files.txt" ]]; then
perl -pi -e "s#^#$TWIG_ROOT/#" changed-files.txt
if [[ -f "changed-files.txt" && -s "changed-files.txt" ]]; then
cd ../../../../../
$RUN_PHP \
vendor/bin/phpcs \
--standard=psr12 \
--ignore=tests/*/Fixtures/* \
--exclude=Generic.Files.LineLength \
--file-list=$TWIG_ROOT/changed-files.txt 2>&1 \
| tee php_codesniff_log.txt || true
rm source/eshop_ce/vendor/oxid-esales/twig-component/changed-files.txt
if grep -q -Ei 'fail|\\.\\=\\=|Warning|Notice|Deprecated|Fatal|Error' php_codesniff_log.txt;
then exit 1;
fi
fi
fi
# - name: Prepare for PHP_CS check
# run: |
# cd source/eshop_ce/vendor/oxid-esales/twig-component
# git diff --name-only origin/${{ github.ref_name }} HEAD~1 | grep '\.php$' >changed-files.txt || true
# if [[ -f "changed-files.txt" && -s "changed-files.txt" ]]; then
# perl -pi -e "s#^#$TWIG_ROOT/#" changed-files.txt
# if [[ -f "changed-files.txt" && -s "changed-files.txt" ]]; then
# cd ../../../../../
# $RUN_PHP \
# vendor/bin/phpcs \
# --standard=psr12 \
# --ignore=tests/*/Fixtures/* \
# --exclude=Generic.Files.LineLength \
# --file-list=$TWIG_ROOT/changed-files.txt 2>&1 \
# | tee php_codesniff_log.txt || true
# rm source/eshop_ce/vendor/oxid-esales/twig-component/changed-files.txt
# if grep -q -Ei 'fail|\\.\\=\\=|Warning|Notice|Deprecated|Fatal|Error' php_codesniff_log.txt;
# then exit 1;
# fi
# fi
# fi

- name: Run Install Shop
run: |
Expand Down

0 comments on commit 250323f

Please sign in to comment.