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

20 lines
537 B
YAML

name: lint
on:
workflow_dispatch:
pull_request:
branches:
- "**"
push:
branches:
- "**"
jobs:
stylua:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: JohnnyMorganz/stylua-action@1.0.0
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