-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use now phpcsstandards instead of squizlabs (#27)
* fix: use now phpcsstandards instead of squizlabs * fix: use Github Actions instead of CircleCI * fix: allow dealerdirect/phpcodesniffer-composer-installer * fix: add strategy for lint
- Loading branch information
1 parent
4eea8d8
commit 01e3561
Showing
3 changed files
with
73 additions
and
139 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Code quality | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
composer: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
version: [ 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3 ] | ||
|
||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cache composer dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
key: composer-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}-${{ matrix.version }} | ||
restore-keys: composer- | ||
path: vendor | ||
|
||
- name: Install composer dependencies | ||
uses: php-actions/composer@v6 | ||
with: | ||
interaction: no | ||
dev: yes | ||
php_version: ${{ matrix.version }} | ||
version: 2 | ||
args: --optimize-autoloader --no-scripts --ignore-platform-reqs | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
version: [ 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3 ] | ||
|
||
needs: composer | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cache composer dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
key: composer-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}-${{ matrix.version }} | ||
restore-keys: composer- | ||
path: vendor | ||
|
||
- name: Install PHP with extension | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.version }} | ||
|
||
- name: PHP Code Sniffer | ||
run: make phpcs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
01e3561
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your support and your enthousiasm embracing the take-over of the PHP_CodeSniffer package.
In contrast to earlier information, arrangements are now being made to allow the package to continue under its original name on Packagist. The commit (in the new repo) to rename the package has been reverted.
I'd recommend reverting the Composer reference changes and keeping the changes which refer to the repo URL on GitHub.
Sorry for the confusion and thank you for understanding. I hope you'll enjoy the 3.8.0 release, which I expect to release this Friday.