openingh.nvim/.github/workflows/stylua_check.yml
2022-09-26 23:38:08 +03:00

20 lines
546 B
YAML

name: lint with stylua
on:
workflow_dispatch:
pull_request:
branches:
- "**"
push:
branches:
- "**"
jobs:
stylua:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: JohnnyMorganz/stylua-action@v1
with:
token: ${{ secrets.GH_TOKEN }}
# CLI arguments
args: --check --config-path stylua.toml --glob 'lua/**/*.lua' -- lua
# Specify `version` to pin a specific version, otherwise action will always use latest version/automatically update