⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
lint:
name: Lint with PHPCS
name: Lint with parallel-lint and PHPCS
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -23,6 +23,9 @@ jobs:
- name: Install composer dependencies
run: composer install

- name: Run parallel-lint
run: vendor/bin/parallel-lint . --exclude vendor

- name: Run phpcs
run: vendor/bin/phpcs -p -s

Expand Down
10 changes: 8 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,25 @@
"squizlabs/php_codesniffer": "3.11.3"
},
"require-dev": {
"phpunit/phpunit": "^12.0"
"phpunit/phpunit": "^12.0",
"php-parallel-lint/php-parallel-lint": "^1.4"
},
"autoload": {
"psr-4": {
"DanielEScherzer\\CommonPhpcs\\": "src/"
}
},
"scripts": {
"parallel-lint": "parallel-lint . --exclude vendor",
"phpcs": "phpcs -p -s",
"phpunit": "phpunit",
"lint": [
"@parallel-lint",
"@phpcs"
],
"test": [
"@phpunit",
"@phpcs"
"@lint"
]
},
"config": {
Expand Down