Skip to content

Commit

Permalink
Try to retain some colors while still having the problem matcher matc…
Browse files Browse the repository at this point in the history
…h (cf actions/runner#2341 - problem matcher do not work on colored output)
  • Loading branch information
jmarrec committed Jun 20, 2023
1 parent d0e67d8 commit affbccd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration_problem_matcher.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"owner": "loguru-parser",
"pattern": [
{
"regexp": "^\\[.*\\| (ERROR|WARNING)\\s+\\| (.*):(\\d+) \\| (.*?)\\]$",
"regexp": "^\\[.*\\|.*?(ERROR|WARNING).*?\\| (.*):(\\d+) \\| (.*?)\\]$",
"severity": 1,
"file": 2,
"line": 3,
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/loguru_test_matcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ on:
push:

env:
# LOGURU_FORMAT: "[<green>{time:YYYY-MM-DD HH:mm:ss.SSS}</green> | <level>{level: <8}</level> | <cyan>{file}</cyan>:<cyan>{line}</cyan> | {name}:<cyan>{function}</cyan> - <level>{message}</level>]"
LOGURU_FORMAT: "[{time:YYYY-MM-DD HH:mm:ss.SSS} | {level: <8} | {file}:{line} | {name}:{function} - <level>{message}</level>]"
# https://github.com/actions/runner/issues/2341 - problem matcher do not work on colored output
LOGURU_FORMAT: "[<green>{time:YYYY-MM-DD HH:mm:ss.SSS}</green> | <level>{level: <8}</level> | {file}:{line} | {name}:<cyan>{function}</cyan> - <level>{message}</level>]"
#LOGURU_FORMAT: "[{time:YYYY-MM-DD HH:mm:ss.SSS} | {level: <8} | {file}:{line} | {name}:{function} - <level>{message}</level>]"

jobs:
integration-test:
Expand Down

0 comments on commit affbccd

Please sign in to comment.