Skip to content

Commit

Permalink
actions: add problem matcher to lua checks
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 authored and peterbarker committed Dec 21, 2024
1 parent cb69079 commit ccf4407
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/problem-matchers/Lua.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
]
}
3 changes: 3 additions & 0 deletions .github/workflows/test_scripting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
with:
submodules: 'recursive'

- name: Register lua problem matcher
run: echo "::add-matcher::.github/problem-matchers/Lua.json"

- name: Lua Linter
shell: bash
run: |
Expand Down

0 comments on commit ccf4407

Please sign in to comment.