mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-22 01:25:28 +03:00
[CI] Add check, if php files are marked as non-executable (#2439)
This commit is contained in:
parent
09fac3aa35
commit
f54c996e0f
4 changed files with 13 additions and 0 deletions
13
.github/workflows/lint.yml
vendored
13
.github/workflows/lint.yml
vendored
|
@ -33,3 +33,16 @@ jobs:
|
|||
- run: composer global require dealerdirect/phpcodesniffer-composer-installer
|
||||
- run: composer global require phpcompatibility/php-compatibility
|
||||
- run: ~/.composer/vendor/bin/phpcs . --standard=phpcompatibility.xml --warning-severity=0 --extensions=php -p
|
||||
|
||||
executable_php_files_check:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: |
|
||||
if find -name "*.php" -executable -type f -print -exec false {} +
|
||||
then
|
||||
echo 'Good, no executable php scripts found'
|
||||
else
|
||||
echo 'Please unmark php scripts above as non-executable'
|
||||
exit 1
|
||||
fi
|
||||
|
|
0
bridges/BukowskisBridge.php
Executable file → Normal file
0
bridges/BukowskisBridge.php
Executable file → Normal file
0
bridges/GiphyBridge.php
Executable file → Normal file
0
bridges/GiphyBridge.php
Executable file → Normal file
0
bridges/ThePirateBayBridge.php
Executable file → Normal file
0
bridges/ThePirateBayBridge.php
Executable file → Normal file
Loading…
Reference in a new issue