diff options
| author | TSRBerry <20988865+TSRBerry@users.noreply.github.com> | 2023-08-16 22:58:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-16 22:58:34 +0200 |
| commit | b12ea343d00d5325c95975afa55a3b1e41986f86 (patch) | |
| tree | fecce0d1633aa45172f5b421530841934f00c3f9 /.github | |
| parent | abaa35ad3a7271240b77dadca0aa3627bed242a0 (diff) | |
Add improved csc problem matcher (#5530)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/csc.json | 18 | ||||
| -rw-r--r-- | .github/workflows/build.yml | 3 | ||||
| -rw-r--r-- | .github/workflows/checks.yml | 3 | ||||
| -rw-r--r-- | .github/workflows/release.yml | 3 |
4 files changed, 27 insertions, 0 deletions
diff --git a/.github/csc.json b/.github/csc.json new file mode 100644 index 00000000..2b960edd --- /dev/null +++ b/.github/csc.json @@ -0,0 +1,18 @@ +{ + "problemMatcher": [ + { + "owner": "csc", + "pattern": [ + { + "regexp": "^((?:\\\\|/)(?:[^\\\\/:]+(?:\\\\|/))+[^\\\\/]+)\\((\\d+),(\\d+)\\):\\s+([a-zA-Z]+)\\s+([^:]+):\\s+([^[]+)\\s+\\[", + "file": 1, + "line": 2, + "column": 3, + "severity": 4, + "code": 5, + "message": 6 + } + ] + } + ] +} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bbc2eca8..f0aa2a06 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,6 +40,9 @@ jobs: - uses: actions/setup-dotnet@v3 with: global-json-file: global.json + + - name: Overwrite csc problem matcher + run: echo "::add-matcher::.github/csc.json" - name: Get git short hash id: git_short_hash diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 94d0a342..25276b72 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -31,6 +31,9 @@ jobs: with: global-json-file: global.json + - name: Overwrite csc problem matcher + run: echo "::add-matcher::.github/csc.json" + - run: dotnet restore - name: Print dotnet format version diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 63e6d018..5091944a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,6 +67,9 @@ jobs: - uses: actions/setup-dotnet@v3 with: global-json-file: global.json + + - name: Overwrite csc problem matcher + run: echo "::add-matcher::.github/csc.json" - name: Get version info id: version_info |
