Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
devajmeireles committed Sep 16, 2024
1 parent ff2628c commit 281e594
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 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.3]

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: "[GitHub] fixes coding style"
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"pestphp/pest-plugin-type-coverage": "^3.0",
"spatie/laravel-ray": "^1.37",
"larastan/larastan": "^2.9",
"orchestra/testbench": "^9.4",
"orchestra/testbench-dusk": "^9.7",
"orchestra/testbench": "^8.0|^9.0",
"orchestra/testbench-dusk": "^8.0|^9.0",
"rector/rector": "^1.2"
},
"autoload": {
Expand Down

0 comments on commit 281e594

Please sign in to comment.