This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
Update README.md #23
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: Fix PHP code style issues | |
on: [push] | |
jobs: | |
php-code-styling: | |
runs-on: ubuntu-22.04 | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository. | |
contents: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
extensions: dom, curl, libxml, mbstring, zip | |
ini-values: error_reporting=E_ALL | |
tools: composer:v2 | |
coverage: none | |
- name: Setup app | |
run: | | |
composer install --prefer-dist --no-interaction --no-progress | |
npm install | |
- name: Fix PHP code style issues | |
run: composer format-php | |
- name: Fix Blade code style issues | |
run: composer format-blade | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Fix styling |