Skip to content

Commit ee1a943

Browse files
authored
Disable GHA duplicate problem matchers (microsoft#821)
1 parent 52db494 commit ee1a943

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ jobs:
3131
with:
3232
cache-name: build
3333

34+
# Avoid duplicate PR annotations.
35+
- name: Disable PR annotations
36+
run: |
37+
echo "::remove-matcher owner=eslint-compact::"
38+
echo "::remove-matcher owner=eslint-stylish::"
39+
echo "::remove-matcher owner=tsc::"
40+
echo "::remove-matcher owner=go::"
41+
3442
- run: npm ci
3543

3644
- run: npx hereby build
@@ -53,6 +61,7 @@ jobs:
5361
config:
5462
- os: ubuntu-latest
5563
coverage: true
64+
main: true
5665
- os: windows-latest
5766
coverage: true
5867
skip: ${{ github.event_name == 'merge_group' }}
@@ -106,6 +115,15 @@ jobs:
106115
with:
107116
cache-name: test
108117

118+
# Avoid duplicate PR annotations.
119+
- if: ${{ ! matrix.config.main }}
120+
name: Disable PR annotations
121+
run: |
122+
echo "::remove-matcher owner=eslint-compact::"
123+
echo "::remove-matcher owner=eslint-stylish::"
124+
echo "::remove-matcher owner=tsc::"
125+
echo "::remove-matcher owner=go::"
126+
109127
- run: npm ci
110128

111129
- run: go install gotest.tools/gotestsum@latest
@@ -155,6 +173,7 @@ jobs:
155173
matrix:
156174
config:
157175
- os: ubuntu-latest
176+
main: true
158177
- os: windows-latest
159178
skip: ${{ github.event_name == 'merge_group' }}
160179
- os: macos-latest
@@ -182,6 +201,15 @@ jobs:
182201
with:
183202
cache-name: lint${{ (matrix.config.noembed && '-noembed') || ''}}
184203

204+
# Avoid duplicate PR annotations.
205+
- if: ${{ ! matrix.config.main }}
206+
name: Disable PR annotations
207+
run: |
208+
echo "::remove-matcher owner=eslint-compact::"
209+
echo "::remove-matcher owner=eslint-stylish::"
210+
echo "::remove-matcher owner=tsc::"
211+
echo "::remove-matcher owner=go::"
212+
185213
- run: npm ci
186214

187215
- run: npx hereby lint
@@ -245,6 +273,14 @@ jobs:
245273
with:
246274
cache-name: smoke
247275

276+
# Avoid duplicate PR annotations.
277+
- name: Disable PR annotations
278+
run: |
279+
echo "::remove-matcher owner=eslint-compact::"
280+
echo "::remove-matcher owner=eslint-stylish::"
281+
echo "::remove-matcher owner=tsc::"
282+
echo "::remove-matcher owner=go::"
283+
248284
- run: npm ci
249285

250286
- run: npx hereby build --race

0 commit comments

Comments
 (0)