From 036a0b5f1d710aab1abee9de779b82548d8edf48 Mon Sep 17 00:00:00 2001 From: yetone Date: Thu, 15 Aug 2024 11:20:03 +0800 Subject: [PATCH] feat: add stylua check github action --- .github/workflows/stylua.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 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..f2180f9 --- /dev/null +++ b/.github/workflows/stylua.yaml @@ -0,0 +1,20 @@ +name: Stylua Check + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: JohnnyMorganz/stylua-action@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + version: latest + args: --check ./lua/