Skip to content

A self-hosted media server and file management system

gh pint action ?

aminnausin72b9d9bd8077
diff --git a/.github/workflows/laravel-pint.yml b/.github/workflows/laravel-pint.yml
new file mode 100644
index 00000000..f5539db5
--- /dev/null
+++ b/.github/workflows/laravel-pint.yml
@@ -0,0 +1,37 @@
+name: Fix Code Style
+
+on:
+ push:
+ branches:
+ - main
+ - dev
+
+jobs:
+ laravel-pint:
+ 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: 'Fixes coding style'
diff --git a/.github/workflows/laravel.yml b/.github/workflows/laravel.yml
index 6c1df410..c7a50e5a 100755
--- a/.github/workflows/laravel.yml
+++ b/.github/workflows/laravel.yml
@@ -35,7 +35,7 @@ jobs:
- name: Set up PHP
uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
- php-version: '8.2'
+ php-version: '8.4'
extensions: pgsql
- uses: actions/checkout@v4