Merge d633b1a83b92b294dbbf6f41e5dafd19b18dba1d into 916edb9a40fd86d1ff57b758807ebe57242f7407

This commit is contained in:
Ryo Nakamura 2024-08-22 23:23:14 +09:00 committed by GitHub
commit db8d9ab1c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 24 additions and 0 deletions

View File

@ -1,5 +1,6 @@
const process = require("process"); const process = require("process");
const core = require("@actions/core"); const core = require("@actions/core");
const path = require("path");
const { const {
parseVersionRange, parseVersionRange,
@ -43,6 +44,8 @@ async function main() {
await install(version); await install(version);
core.info(`::add-matcher::${path.join(__dirname, "problem-matchers.json")}`);
core.setOutput("deno-version", version.version); core.setOutput("deno-version", version.version);
core.setOutput("is-canary", version.isCanary); core.setOutput("is-canary", version.isCanary);

21
problem-matchers.json Normal file
View File

@ -0,0 +1,21 @@
{
"problemMatcher": [
{
"owner": "deno-lint",
"pattern": [
{
"regexp": "^(?:\\x1B\\[[0-9;]*[a-zA-Z])*(warning|warn|error)(?:\\[(\\S*)\\])?(?:\\x1B\\[[0-9;]*[a-zA-Z])*: (.*?)(?:\\x1B\\[[0-9;]*[a-zA-Z])*$",
"severity": 1,
"code": 2,
"message": 3
},
{
"regexp": "^ (?:\\x1B\\[[0-9;]*[a-zA-Z])*-->(?:\\x1B\\[[0-9;]*[a-zA-Z])* (?:\\x1B\\[[0-9;]*[a-zA-Z])*(\\S+?)(?:\\x1B\\[[0-9;]*[a-zA-Z])*:(\\d+):(\\d+)(?:\\x1B\\[[0-9;]*[a-zA-Z])*$",
"file": 1,
"line": 2,
"column": 3
}
]
}
]
}