aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/stylua.yml
blob: 92370ca5b79ccd381e2e41299b35e614ca97e40b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: Stylua check

on:
    push:
        branches:
            - "main"
    pull_request:

jobs:
    stylua:
        runs-on: ubuntu-latest
        steps:
            - uses: actions/checkout@v6
            - name: Run Stylua check
              uses: JohnnyMorganz/stylua-action@v5
              with:
                  # token is needed because the action allegedly downloads binary from github releases
                  token: ${{ secrets.GITHUB_TOKEN }}
                  # CLI arguments
                  args: --check .
                  version: 2.4.1