From 652c2bda0c58b22a7971067d88b6bc60382992da Mon Sep 17 00:00:00 2001 From: Danny McCormick Date: Fri, 7 Jun 2019 14:59:46 -0400 Subject: [PATCH] Add tsc problem matcher --- .github/tsc.json | 16 ++++++++++++++++ src/setup-node.ts | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/tsc.json diff --git a/.github/tsc.json b/.github/tsc.json new file mode 100644 index 00000000..6e48ac84 --- /dev/null +++ b/.github/tsc.json @@ -0,0 +1,16 @@ +{ + "problemMatcher": [ + { + "owner": "tsc", + "pattern": [ + { + "regexp": "/^([^\\s].*)\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\):\\s+(\\d+)\\s+(.*)$/", + "file": 1, + "location": 2, + "code": 3, + "message": 4 + } + ] + } + ] +} \ No newline at end of file diff --git a/src/setup-node.ts b/src/setup-node.ts index ce3c31f7..18625d8f 100644 --- a/src/setup-node.ts +++ b/src/setup-node.ts @@ -14,7 +14,7 @@ async function run() { } // TODO: setup proxy from runner proxy config - // TODO: problem matchers registered + console.log('##[add-matcher].github/tsc.json'); } catch (error) { core.setFailed(error.message); }