Create lint.yml

This commit is contained in:
EncodedVenom 2024-10-05 21:05:45 -04:00 committed by GitHub
parent 567699d65e
commit d82909deae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

20
.github/workflows/lint.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: Stylua
on: [push, pull_request, workflow_dispatch]
jobs:
run:
name: Run Stylua
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Run Stylua
uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest # NOTE: we recommend pinning to a specific version in case of formatting changes
# CLI arguments
args: --check ./src