ci: add github action to run stylua on PRs

remotes/origin/HEAD
pseudometa 2023-03-17 12:08:51 +01:00 committed by GitHub
parent 383807b237
commit 749027d470
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

16
.github/workflows/stylua.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Linting and style checking
on: [pull_request]
jobs:
stylua:
name: stylua
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: JohnnyMorganz/stylua-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
# CLI arguments
args: --color always --check lua/