mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-12-18 08:54:20 +03:00
2ae9793f2c
Support for Ubuntu 16.04 (Xenial Xerus) runners is deprecated and will be removed on August 1, 2021 https://github.com/shivammathur/setup-php/issues/452
35 lines
1,014 B
YAML
35 lines
1,014 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
phpcs:
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
matrix:
|
|
php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3', '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: ['5.6', '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 require phpcompatibility/php-compatibility
|
|
- run: ~/.composer/vendor/bin/phpcs . --standard=phpcompatibility.xml --warning-severity=0 --extensions=php -p
|