Add tsc problem matcher (#9)

* Add tsc problem matcher

* Update readme
This commit is contained in:
Danny McCormick 2019-06-17 16:21:20 -04:00 committed by GitHub
parent 4ac54ebb92
commit 82902559de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 3 deletions

16
.github/tsc.json vendored Normal file
View File

@ -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
}
]
}
]
}

View File

@ -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)

View File

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

View File

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