attempt 2 to fix the code styling #3
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
name: Code Style | |
on: [push] | |
jobs: | |
php-cs-fixer: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Run PHP CS Fixer | |
uses: docker://oskarstark/php-cs-fixer-ga | |
with: | |
args: --config=.php-cs-fixer.dist.php --allow-risky=yes | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v2.3.0 | |
with: | |
commit_message: Fix styling | |
branch: ${{ github.head_ref }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install NPM dependencies | |
run: npm ci | |
- name: Run Prettier | |
run: npm run format | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v2.3.0 | |
with: | |
commit_message: Apply Prettier changes | |
branch: ${{ github.head_ref }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |