Update phpcs_psr12.yml

This commit is contained in:
Florian Pesth 2023-11-15 12:27:33 +01:00 committed by GitHub
parent e8ce1d08a6
commit 89e7c718d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 11 deletions

View File

@ -3,19 +3,15 @@ name: "CI"
on: [workflow_dispatch, pull_request] on: [workflow_dispatch, pull_request]
jobs: jobs:
phpcs: phpcs_psr12:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 # important! fetch-depth: 0
# we may use whatever way to install phpcs, just specify the path on the next step
# however, curl seems to be the fastest
- name: Install PHP_CodeSniffer - name: Install PHP_CodeSniffer
run: | run: sudo apt-get -y install php-codesniffer
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar - name: Set phpcs to ignore warnings in return value
php phpcs.phar --version run: phpcs --config-set ignore_warnings_on_exit 1
- name: Run phpcs - name: Run phpcs
run: php phpcs.phar --standard=PSR12 html run: phpcs --standard=PSR12 html