actions: add problem matcher to lua checks

This commit is contained in:
Iampete1 2024-12-19 21:32:54 +00:00 committed by Peter Barker
parent cb6907992b
commit ccf4407d44
2 changed files with 35 additions and 0 deletions

32
.github/problem-matchers/Lua.json vendored Normal file
View File

@ -0,0 +1,32 @@
{
"problemMatcher": [
{
"owner": "Luacheck-problem-matcher",
"fileLocation": [ "relative", "${GITHUB_WORKSPACE}" ],
"pattern": [
{
"regexp": "^( *)(.+.lua):(\\d+):(\\d+): (.*)$",
"file": 2,
"line": 3,
"column": 4,
"message": 5
}
]
},
{
"owner": "Lua-language-server-problem-matcher",
"pattern": [
{
"regexp": "^(.+.lua):(\\d+):(\\d+)",
"file": 1,
"line": 2,
"column": 3
},
{
"regexp": "^(.*)",
"message": 1
}
]
}
]
}

View File

@ -29,6 +29,9 @@ jobs:
with: with:
submodules: 'recursive' submodules: 'recursive'
- name: Register lua problem matcher
run: echo "::add-matcher::.github/problem-matchers/Lua.json"
- name: Lua Linter - name: Lua Linter
shell: bash shell: bash
run: | run: |