Created
July 7, 2021 07:12
-
-
Save dwaard/15a788f1bb3a9743181789d3ca283705 to your computer and use it in GitHub Desktop.
GitHub action for HZ-HBOICT Laravel projects
This file contains hidden or 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
name: "HZ-HBOICT Laravel Style Check" | |
on: | |
pull_request: | |
paths: | |
- "**.php" | |
- "phpcs.xml" | |
- ".github/workflows/HZ-HBOICT-PHPcs.yml" | |
jobs: | |
phpcs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # important! | |
# 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 | |
run: | | |
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar | |
php phpcs.phar --version | |
- uses: thenabeel/action-phpcs@v8 | |
with: | |
phpcs_path: php phpcs.phar | |
standard: phpcs.xml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment