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); }