ci: add stylua GitHub action (#20)

Closes #7.
This commit is contained in:
okuuva
2023-04-29 16:23:11 +03:00
committed by GitHub
parent 42d1342b9e
commit c6acc92785

16
.github/workflows/pr-checks.yml vendored Normal file
View File

@@ -0,0 +1,16 @@
name: PR checks
on:
pull_request:
branches:
- main
jobs:
stylua:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: JohnnyMorganz/stylua-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check .