From 1ac12f5638199abcd6714f460796d61d8ca8031a Mon Sep 17 00:00:00 2001 From: nullchilly Date: Thu, 14 Jul 2022 04:17:45 +0700 Subject: [PATCH] ci(github): Add stylua check --- .github/workflows/formatting.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/formatting.yaml diff --git a/.github/workflows/formatting.yaml b/.github/workflows/formatting.yaml new file mode 100644 index 0000000..e60ee1d --- /dev/null +++ b/.github/workflows/formatting.yaml @@ -0,0 +1,16 @@ +name: stylua +on: + push: + branches: ["main"] + paths-ignore: + - ".github/**" + +jobs: + stylua: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: JohnnyMorganz/stylua-action@1.0.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --check --config-path=.stylua.toml .