Commit 4f7229a 1 parent 53c90c4 commit 4f7229a Copy full SHA for 4f7229a
File tree 3 files changed +119
-0
lines changed
3 files changed +119
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "problemMatcher" : [
3
+ {
4
+ "owner" : " csc" ,
5
+ "pattern" : [
6
+ {
7
+ "regexp" : " ^((?:\\\\ |/)(?:[^\\\\ /:]+(?:\\\\ |/))+[^\\\\ /]+)\\ ((\\ d+),(\\ d+)\\ ):\\ s+([a-zA-Z]+)\\ s+([^:]+):\\ s+([^[]+)\\ s+\\ [" ,
8
+ "file" : 1 ,
9
+ "line" : 2 ,
10
+ "column" : 3 ,
11
+ "severity" : 4 ,
12
+ "code" : 5 ,
13
+ "message" : 6
14
+ }
15
+ ]
16
+ }
17
+ ]
18
+ }
Original file line number Diff line number Diff line change
1
+ name : Perform checks
2
+
3
+ on :
4
+ pull_request :
5
+ branches : [ master ]
6
+ paths :
7
+ - ' **'
8
+ - ' !.github/**'
9
+ - ' !*.yml'
10
+ - ' !*.config'
11
+ - ' !*.md'
12
+ - ' .github/workflows/*.yml'
13
+
14
+ permissions :
15
+ pull-requests : write
16
+ checks : write
17
+
18
+ concurrency :
19
+ group : pr-checks-${{ github.event.number }}
20
+ cancel-in-progress : true
21
+
22
+ jobs :
23
+ format :
24
+ runs-on : ubuntu-latest
25
+ steps :
26
+ - uses : actions/checkout@v4
27
+ with :
28
+ fetch-depth : 0
29
+
30
+ - uses : actions/setup-dotnet@v4
31
+ with :
32
+ global-json-file : global.json
33
+
34
+ - name : Overwrite csc problem matcher
35
+ run : echo "::add-matcher::.github/csc.json"
36
+
37
+ - run : dotnet restore
38
+
39
+ - name : Print dotnet format version
40
+ run : dotnet format --version
41
+
42
+ - name : Run dotnet format whitespace
43
+ run : |
44
+ dotnet format whitespace --verify-no-changes --report ./whitespace-report.json -v d
45
+
46
+ # For some unknown reason this step sometimes fails with exit code 139 (segfault?),
47
+ # so in that case we'll try again (3 tries max).
48
+ - name : Run dotnet format style
49
+ uses : TSRBerry/unstable-commands@v1
50
+ with :
51
+ commands : dotnet format style --severity info --verify-no-changes --report ./style-report.json -v d
52
+ timeout-minutes : 5
53
+ retry-codes : 139
54
+
55
+ # For some unknown reason this step sometimes fails with exit code 139 (segfault?),
56
+ # so in that case we'll try again (3 tries max).
57
+ - name : Run dotnet format analyzers
58
+ uses : TSRBerry/unstable-commands@v1
59
+ with :
60
+ commands : dotnet format analyzers --severity info --verify-no-changes --report ./analyzers-report.json -v d
61
+ timeout-minutes : 5
62
+ retry-codes : 139
63
+
64
+ - name : Upload report
65
+ if : failure()
66
+ uses : actions/upload-artifact@v4
67
+ with :
68
+ name : dotnet-format
69
+ path : ./*-report.json
Original file line number Diff line number Diff line change
1
+ name : Run tests
2
+
3
+ on :
4
+ pull_request :
5
+
6
+ concurrency :
7
+ group : pr-tests-${{ github.event.number }}
8
+ cancel-in-progress : true
9
+
10
+ jobs :
11
+ unit :
12
+ name : Unit tests (${{ matrix.config }})
13
+ runs-on : ubuntu-latest
14
+ strategy :
15
+ matrix :
16
+ config : [Debug, Release]
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+
20
+ - uses : actions/setup-dotnet@v4
21
+ with :
22
+ global-json-file : global.json
23
+
24
+ - name : Overwrite csc problem matcher
25
+ run : echo "::add-matcher::.github/csc.json"
26
+
27
+ - name : Test
28
+ uses : TSRBerry/unstable-commands@v1
29
+ with :
30
+ commands : dotnet test -c "${{ matrix.config }}"
31
+ timeout-minutes : 10
32
+ retry-codes : 139
You can’t perform that action at this time.
0 commit comments