Highlight error messages in CI

Copied problem-matchers from github/semmle-code, which is used for
running CI for github/codeql.
This commit is contained in:
Owen Mansel-Chan 2021-03-11 15:07:27 +00:00
Родитель fecf265641
Коммит ea7af2e4a2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 67E427E02E6DA1B8
5 изменённых файлов: 70 добавлений и 0 удалений

14
.github/problem-matchers/codeql-query-format.json поставляемый Normal file
Просмотреть файл

@ -0,0 +1,14 @@
{
"problemMatcher": [
{
"owner": "codeql-query-format",
"pattern": [
{
"regexp": "^((.*) would change by autoformatting\\.)$",
"file": 2,
"message": 1
}
]
}
]
}

17
.github/problem-matchers/codeql-syntax-check.json поставляемый Normal file
Просмотреть файл

@ -0,0 +1,17 @@
{
"problemMatcher": [
{
"owner": "codeql-syntax-check",
"pattern": [
{
"regexp": "^((ERROR|WARNING): .* \\((.*):(\\d+),(\\d+)-\\d+\\))$",
"message": 1,
"file": 3,
"line": 4,
"col": 5,
"severity": 2
}
]
}
]
}

14
.github/problem-matchers/codeql-test-run.json поставляемый Normal file
Просмотреть файл

@ -0,0 +1,14 @@
{
"problemMatcher": [
{
"owner": "codeql-test-run",
"pattern": [
{
"regexp": "(\\[.*\\] FAILED\\((RESULT|COMPILATION)\\) (.*))$",
"file": 3,
"message": 1
}
]
}
]
}

13
.github/problem-matchers/make.json поставляемый Normal file
Просмотреть файл

@ -0,0 +1,13 @@
{
"problemMatcher": [
{
"owner": "make",
"pattern": [
{
"regexp": "^(make: \\*\\*\\* .*)$",
"message": 1
}
]
}
]
}

12
.github/workflows/codeqltest.yml поставляемый
Просмотреть файл

@ -30,6 +30,10 @@ jobs:
- name: Check out code
uses: actions/checkout@v2
- name: Enable problem matchers in repository
shell: bash
run: 'find .github/problem-matchers -name \*.json -exec echo "::add-matcher::{}" \;'
- name: Build
run: env PATH=$PATH:$HOME/codeql make
@ -75,6 +79,10 @@ jobs:
- name: Check out code
uses: actions/checkout@v2
- name: Enable problem matchers in repository
shell: bash
run: 'find .github/problem-matchers -name \*.json -exec echo "::add-matcher::{}" \;'
- name: Build
run: env PATH=$PATH:$HOME/codeql make
@ -108,6 +116,10 @@ jobs:
- name: Check out code
uses: actions/checkout@v2
- name: Enable problem matchers in repository
shell: bash
run: 'find .github/problem-matchers -name \*.json -exec echo "::add-matcher::{}" \;'
- name: Build
run: |
$Env:Path += ";$HOME\codeql"