feat: add stylua check github action

This commit is contained in:
yetone 2024-08-15 11:20:03 +08:00
parent ea53082844
commit 036a0b5f1d
No known key found for this signature in database
GPG Key ID: 222BA52B342D52AA

20
.github/workflows/stylua.yaml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Stylua Check
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check ./lua/