Skip to content

Commit

Permalink
Add Laravel point workflow and lint all files
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyiliev committed May 19, 2024
1 parent 61db2b9 commit 289b557
Show file tree
Hide file tree
Showing 41 changed files with 660 additions and 354 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Fix Code Style

on: [push]

jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.2]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: json, dom, curl, libxml, mbstring
coverage: none

- name: Install Pint
run: composer global require laravel/pint

- name: Run Pint
run: pint

- name: Commit linted files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Fixes coding style"
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"bacon/bacon-qr-code": "^2.0"
},
"require-dev": {
"laravel/pint": "^1.15",
"orchestra/testbench": "^9.0",
"pestphp/pest": "^2.34",
"pestphp/pest-plugin-laravel": "^2.4"
Expand Down
Loading

0 comments on commit 289b557

Please sign in to comment.