ci: install php via apt, relax eslint rules for existing codebase
This commit is contained in:
@@ -10,12 +10,13 @@ jobs:
|
||||
php-lint:
|
||||
name: PHP (phpcs PSR-12)
|
||||
runs-on: ubuntu-latest
|
||||
container: php:8.2-cli
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install PHP_CodeSniffer
|
||||
- name: Install PHP and phpcs
|
||||
run: |
|
||||
apt-get update -qq
|
||||
apt-get install -y -qq php-cli
|
||||
curl -sL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar -o /usr/local/bin/phpcs
|
||||
chmod +x /usr/local/bin/phpcs
|
||||
|
||||
|
||||
Reference in New Issue
Block a user