-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (42 loc) · 1.53 KB
/
cleanup_code.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: ReSharper CLI CleanupCode
on: [ push ]
jobs:
cleanup:
runs-on: ubuntu-latest
name: Cleanup Code
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore Dependencies
run: dotnet restore ReSharperCleanupCodeDemo.sln
- name: Cleanup Code
id: cleanup
uses: ArturWincenciak/ReSharper_CleanupCode@v3.0
with:
solution: 'ReSharperCleanupCodeDemo.sln'
fail_on_reformat_needed: 'yes'
jb_cleanup_code_arg: '--verbosity=INFO'
inspection:
runs-on: ubuntu-latest
name: Inspect Code
needs: cleanup
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore Dependencies
run: dotnet restore ReSharperCleanupCodeDemo.sln
- name: Inspect code
uses: muno92/resharper_inspectcode@1.11.8
with:
solutionPath: ./ReSharperCleanupCodeDemo.sln
failOnIssue: 1
minimumSeverity: notice
solutionWideAnalysis: true