feat: add problem matchers for deno lint (#62)

This commit is contained in:
Ryo Nakamura
2024-12-06 10:29:54 +09:00
committed by GitHub
parent 1c4873e05d
commit 56da422736
2 changed files with 28 additions and 0 deletions

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": "^(?:\\s*)(?:\\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
}
]
}
]
}

View File

@@ -1,5 +1,6 @@
import process from "node:process";
import core from "@actions/core";
import path from "node:path";
import {
getDenoVersionFromFile,
parseVersionRange,
@@ -38,6 +39,12 @@ async function main() {
await install(version);
core.info(
`::add-matcher::${
path.join(import.meta.dirname ?? ".", "deno-problem-matchers.json")
}`,
);
core.setOutput("deno-version", version.version);
core.setOutput("release-channel", version.kind);