From c6acc9278514e35b415c53aa7c78bf7767406cd8 Mon Sep 17 00:00:00 2001 From: okuuva Date: Sat, 29 Apr 2023 16:23:11 +0300 Subject: [PATCH] ci: add stylua GitHub action (#20) Closes #7. --- .github/workflows/pr-checks.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/pr-checks.yml diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml new file mode 100644 index 0000000..7131fba --- /dev/null +++ b/.github/workflows/pr-checks.yml @@ -0,0 +1,16 @@ +name: PR checks +on: + pull_request: + branches: + - main + +jobs: + stylua: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: JohnnyMorganz/stylua-action@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + version: latest + args: --check .