From 749027d470d1081541c205a46d8b98e55fe311de Mon Sep 17 00:00:00 2001 From: pseudometa <73286100+chrisgrieser@users.noreply.github.com> Date: Fri, 17 Mar 2023 12:08:51 +0100 Subject: [PATCH] ci: add github action to run stylua on PRs --- .github/workflows/stylua.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/stylua.yml diff --git a/.github/workflows/stylua.yml b/.github/workflows/stylua.yml new file mode 100644 index 0000000..ef9deee --- /dev/null +++ b/.github/workflows/stylua.yml @@ -0,0 +1,16 @@ +name: Linting and style checking + +on: [pull_request] + +jobs: + stylua: + name: stylua + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + - uses: JohnnyMorganz/stylua-action@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + version: latest + # CLI arguments + args: --color always --check lua/