aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/lint.yml
blob: 41830b2258bf26a21b533bd6bbd3df719d55f618 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Lint

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

jobs:
  lua:
    name: Lint Lua files
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6

      - name: Format
        run: |
          make formatlua
          git diff --exit-code

      - name: Lint
        run: make checklua

  queries:
    name: Lint query files
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6

      - name: Format
        run: |
          make formatquery
          git diff --exit-code

      - name: Lint
        run: make lintquery

  readme:
    name: Lint docs
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6

      - name: Check SUPPORTED_LANGUAGES
        run: |
          make docs
          git diff --exit-code