Merge pull request #2 from AzniDev/main #16
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
on: | |
push: | |
paths: | |
- '**.php' | |
pull_request: | |
paths: | |
- '**.php' | |
name: phpcs | |
jobs: | |
phpcs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: check php version | |
run: php -v | |
- name: download phpcs | |
run: wget -O phpcs.phar https://cs.symfony.com/download/php-cs-fixer-v3.phar | |
- name: make phpcs executable | |
run: chmod +x phpcs.phar | |
- name: apply coding style | |
run: php phpcs.phar fix | |
- name: remove phpcs | |
run: rm -f phpcs.phar | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: 'phpcs: apply coding style' |