|
31 | 31 | with:
|
32 | 32 | cache-name: build
|
33 | 33 |
|
| 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 | +
|
34 | 42 | - run: npm ci
|
35 | 43 |
|
36 | 44 | - run: npx hereby build
|
|
53 | 61 | config:
|
54 | 62 | - os: ubuntu-latest
|
55 | 63 | coverage: true
|
| 64 | + main: true |
56 | 65 | - os: windows-latest
|
57 | 66 | coverage: true
|
58 | 67 | skip: ${{ github.event_name == 'merge_group' }}
|
@@ -106,6 +115,15 @@ jobs:
|
106 | 115 | with:
|
107 | 116 | cache-name: test
|
108 | 117 |
|
| 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 | +
|
109 | 127 | - run: npm ci
|
110 | 128 |
|
111 | 129 | - run: go install gotest.tools/gotestsum@latest
|
@@ -155,6 +173,7 @@ jobs:
|
155 | 173 | matrix:
|
156 | 174 | config:
|
157 | 175 | - os: ubuntu-latest
|
| 176 | + main: true |
158 | 177 | - os: windows-latest
|
159 | 178 | skip: ${{ github.event_name == 'merge_group' }}
|
160 | 179 | - os: macos-latest
|
@@ -182,6 +201,15 @@ jobs:
|
182 | 201 | with:
|
183 | 202 | cache-name: lint${{ (matrix.config.noembed && '-noembed') || ''}}
|
184 | 203 |
|
| 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 | +
|
185 | 213 | - run: npm ci
|
186 | 214 |
|
187 | 215 | - run: npx hereby lint
|
@@ -245,6 +273,14 @@ jobs:
|
245 | 273 | with:
|
246 | 274 | cache-name: smoke
|
247 | 275 |
|
| 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 | +
|
248 | 284 | - run: npm ci
|
249 | 285 |
|
250 | 286 | - run: npx hereby build --race
|
|
0 commit comments