Skip to content

Commit

Permalink
Add code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbushnell committed Dec 21, 2024
1 parent ec61324 commit 35a5d67
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Code Style

on: [pull_request]

jobs:
style:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Cache composer dependencies
uses: actions/cache@v4
with:
path: vendor
key: composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
composer-
- uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: none

- name: Install Composer dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader

- name: Run Prettier & Pint
run: ./vendor/bin/pint

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply formatting changes

0 comments on commit 35a5d67

Please sign in to comment.