Skip to content

Commit aa063ea

Browse files
committed
Github annotations for roslyn analyzers
1 parent 45a469d commit aa063ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/pr.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ jobs:
2727
id: bootstrap
2828
uses: ./.github/actions/bootstrap
2929

30+
- name: Run Analyzers
31+
run: |
32+
dotnet format analyzers --severity info -v diag --verify-no-changes --report .artifacts/report.json || true && \
33+
cat .artifacts/report.json | \
34+
jq -r '.[] | "::warning file=\\(.FilePath),line=\\(.FileChanges[].LineNumber),endLine=\\(.FileChanges[].LineNumber),title=\\(.FileChanges[].DiagnosticId)::\\(.FileChanges[].FormatDescription) \\(.FilePath)"' | sort | uniq
35+
3036
- name: Build
3137
run: ./build.sh
3238

0 commit comments

Comments
 (0)