mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-12-19 17:55:33 +03:00
66568e3a39
> For additional security you should declare the allow-plugins config with a list of packages names that are allowed to run code. See https://getcomposer.org/allow-plugins > You have until July 2022 to add the setting. Composer will then switch the default behavior to disallow all plugins. Oops, it is July now.
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
phpcs:
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
matrix:
|
|
php-versions: ['7.4']
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php-versions }}
|
|
tools: phpcs
|
|
- run: phpcs . --standard=phpcs.xml --warning-severity=0 --extensions=php -p
|
|
|
|
phpcompatibility:
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
matrix:
|
|
php-versions: ['7.4']
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php-versions }}
|
|
- run: composer global require dealerdirect/phpcodesniffer-composer-installer
|
|
- run: composer global config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
|
|
- 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
|