1
- name : Lint
2
- on : [push]
1
+ # name: Lint
2
+ # on: [push, pull_request ]
3
3
4
+ # jobs:
5
+ # lint:
6
+ # name: Lint
7
+ # runs-on: ubuntu-latest
8
+ # steps:
9
+ # - name: checkout
10
+ # uses: actions/checkout@v4
11
+ # with:
12
+ # repository: 'CuteOne/BadRotations'
13
+ # - name: wow-lint
14
+ # uses: davidcraig/[email protected]
15
+ # with:
16
+ # path-to-files: '**/*.lua'
17
+
18
+ # name: Lint
19
+
20
+ # on: [push, pull_request, workflow_dispatch]
21
+
22
+ # concurrency:
23
+ # group: ${{ github.workflow }}-${{ github.ref }}
24
+ # cancel-in-progress: ${{ github.event_name == 'pull_request' }}
25
+
26
+ # jobs:
27
+ # lua-check:
28
+ # name: Lua Check
29
+ # runs-on: ubuntu-latest
30
+ # permissions:
31
+ # contents: read
32
+ # issues: read
33
+ # checks: write
34
+ # pull-requests: write
35
+ # if: (github.actor != 'dependabot[bot]')
36
+
37
+ # steps:
38
+ # - name: Checkout source code
39
+ # uses: actions/checkout@v4
40
+
41
+ # # Optional step to run on only changed files
42
+ # - name: Get changed files
43
+ # id: changed-files
44
+ # uses: tj-actions/changed-files@v44
45
+ # with:
46
+ # files: |
47
+ # **.lua
48
+
49
+ # - name: Lua Check
50
+ # if: steps.changed-files.outputs.any_changed == 'true'
51
+ # uses: Kong/public-shared-actions/code-check-actions/lua-lint@main
52
+ # with:
53
+ # additional_args: '--no-default-config --config ../../.luacheckrc'
54
+ # files: ${{ steps.changed-files.outputs.all_changed_files }}
55
+
56
+ name : Luacheck
57
+ on : [push, pull_request]
4
58
jobs :
5
- lint :
6
- name : Lint
59
+ sile :
7
60
runs-on : ubuntu-latest
8
61
steps :
9
- - name : checkout
62
+ - name : Checkout
10
63
uses : actions/checkout@v4
11
- with :
12
- repository : ' ps-wow/action-test-repo'
13
- - name : wow-lint
14
- uses :
davidcraig/[email protected]
15
- with :
16
- path-to-files : ' **/*.lua'
64
+ - name : Luacheck linter
65
+ uses : lunarmodules/luacheck@v1
0 commit comments