Skip to content

Commit

Permalink
core: add github action for code style psr12
Browse files Browse the repository at this point in the history
  • Loading branch information
joy2362 committed Jun 26, 2024
1 parent 1fb0c15 commit 10fcecd
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: php style fix psr12
on:
push:
branches:
- main

jobs:
fix_code_style:
runs-on: ubuntu-latest
permissions:
contents: write

env:
NODE_VERSION: 20

steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: "laravel-pint"
uses: aglipanci/laravel-pint-action@2.1.0
with:
preset: "psr12"

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "style: fix coding style"
1 change: 0 additions & 1 deletion .styleci.yml

This file was deleted.

0 comments on commit 10fcecd

Please sign in to comment.