Skip to content

Commit 9b7eef9

Browse files
committed
ci: annotate openapi-ts warnings with a problem matcher
1 parent 6856b53 commit 9b7eef9

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

‎.github/matchers/openapi-ts.json‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "openapi-ts",
5+
"severity": "warning",
6+
"pattern": [
7+
{
8+
"regexp": "^❗\\S*\\s(\\w+) warning: (.+)$",
9+
"code": 1,
10+
"message": 2
11+
}
12+
]
13+
}
14+
]
15+
}

‎.github/workflows/ci.yaml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ jobs:
4545
runtime: node@24
4646
cache: true
4747

48-
- run: pnpm generate
48+
- run: |
49+
echo "::add-matcher::$GITHUB_WORKSPACE/.github/matchers/openapi-ts.json"
50+
pnpm generate
51+
echo "::remove-matcher owner=openapi-ts::"
4952
5053
- id: version
5154
run: |

0 commit comments

Comments
 (0)