Skip to content

Commit

Permalink
First stab at anontating source files with Coq warnings and errors
Browse files Browse the repository at this point in the history
Add coq matcher in actions

As per
https://github.com/actions/toolkit/blob/master/docs/commands.md#problem-matchers

h/t actions/setup-go#46 (comment)
for pointing out that this is possible
  • Loading branch information
JasonGross committed Mar 30, 2020
1 parent e77b92a commit fa77083
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/coq.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"problemMatcher": [
{
"owner": "coq-problem-matcher",
"pattern": [
{
"regexp": "^File \"([^ \"]+)\", line (\\d+), characters (\\d+-\\d+):",
"file": 1,
"line": 2,
"column": 3
},
{
"regexp": "^(Warning|Error): (.*?)(?:\\s*\\[(.*)\\])?$",
"severity": 1,
"message": 2,
"code": 3
}
]
}
]
}
2 changes: 2 additions & 0 deletions .github/workflows/coq-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ jobs:
- uses: actions/checkout@v2
- name: submodules-init
uses: snickerbockers/submodules-init@v4
- name: add Coq matcher
run: echo "::add-matcher::.github/coq.json"
- name: deps
run: |
eval $(opam env)
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/coq-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ jobs:
C:\cygwin64\bin\bash -l -c 'cd "%cd%"; make printenv'
C:\cygwin64\bin\bash -l -c 'cd "%cd%"; echo "${PATH}"'
shell: cmd
- name: add Coq matcher
run: |
C:\cygwin64\bin\bash -l -c 'cd "%cd%"; echo "::add-matcher::.github/coq.json"'
shell: cmd
- name: deps
run: C:\cygwin64\bin\bash -l -c 'cd "%cd%"; etc/ci/github-actions-make.sh -j%NJOBS% deps'
shell: cmd
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/coq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- name: add Coq matcher
run: echo "::add-matcher::.github/coq.json"
- name: deps
run: etc/ci/github-actions-make.sh -j2 deps
- name: all
Expand Down

0 comments on commit fa77083

Please sign in to comment.