From 82902559de067615972b48c67eed6fdca19447af Mon Sep 17 00:00:00 2001 From: Danny McCormick Date: Mon, 17 Jun 2019 16:21:20 -0400 Subject: [PATCH] Add tsc problem matcher (#9) * Add tsc problem matcher * Update readme --- .github/tsc.json | 16 ++++++++++++++++ README.md | 2 +- lib/setup-node.js | 2 +- src/setup-node.ts | 2 +- 4 files changed, 19 insertions(+), 3 deletions(-) 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/README.md b/README.md index 38000844..f84929b8 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ This action sets by node environment for use in actions by: - optionally downloading and caching a version of node - npm by version spec and add to PATH -- TODO: registering problem matchers for error output +- registering problem matchers for error output - TODO: configuring authentication for npm packages - TODO: configuring proxy if the runner is configured to use a proxy (coming with private runners) diff --git a/lib/setup-node.js b/lib/setup-node.js index 107564ee..10614ba5 100644 --- a/lib/setup-node.js +++ b/lib/setup-node.js @@ -30,7 +30,7 @@ function run() { yield installer.getNode(version); } // TODO: setup proxy from runner proxy config - // TODO: problem matchers registered + console.log('##[add-matcher].github/tsc.json'); } catch (error) { core.setFailed(error.message); 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); }