-
-
Notifications
You must be signed in to change notification settings - Fork 849
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This includes the currently failing checks with automatic fixes, as they are out of scope of this commit. The current goal is automatically reject pull requests that don't me the standards that the rest of our code base already follows.
- Loading branch information
Showing
2 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
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,21 @@ | ||
name: PHP Code Style | ||
|
||
on: [push] | ||
|
||
jobs: | ||
phpcs: | ||
name: PHP CodeSniffer | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Setup PHP | ||
uses: nanasess/setup-php@master | ||
with: | ||
php-version: 7.3 | ||
|
||
- name: Download PHPCS | ||
run: wget https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar | ||
|
||
- name: run PHP codesniffer | ||
run: php phpcs.phar -v --standard=_test/phpcs.xml . |
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