From eef65889a761b185e85fd888e7aae705555835e5 Mon Sep 17 00:00:00 2001 From: gelocraft Date: Sat, 14 Dec 2024 10:41:17 +0800 Subject: [PATCH] ci: add stylua workflow for neovim --- .github/workflows/stylua.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/stylua.yaml diff --git a/.github/workflows/stylua.yaml b/.github/workflows/stylua.yaml new file mode 100644 index 0000000..487aae0 --- /dev/null +++ b/.github/workflows/stylua.yaml @@ -0,0 +1,21 @@ +--- +on: # yamllint disable-line rule:truthy + push: + paths: + - nvim/**.lua + workflow_dispatch: + +defaults: + run: + working-directory: ./nvim + +jobs: + stylua: + runs-on: macos-latest + steps: + - name: Install stylua + run: brew install stylua + + - uses: actions/checkout@v4 + - name: Stylua Check + run: stylua --check .