File tree 3 files changed +65
-2
lines changed
3 files changed +65
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : ci
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+
11
+ jobs :
12
+ fmt :
13
+ runs-on : windows-latest
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ - name : Setup dotnet
17
+ uses : actions/setup-dotnet@v4
18
+ with :
19
+ dotnet-version : 8.0.x
20
+ cache : true
21
+ - name : Install dotnet format
22
+ run : dotnet tool install -g dotnet-format
23
+ - name : Run dotnet format
24
+ run : dotnet format --verify-no-changes .\Coder.Desktop.sln
25
+
26
+ test :
27
+ runs-on : windows-latest
28
+ steps :
29
+ - uses : actions/checkout@v4
30
+ - name : Setup dotnet
31
+ uses : actions/setup-dotnet@v4
32
+ with :
33
+ dotnet-version : 8.0.x
34
+ cache : true
35
+ - name : Restore dependencies
36
+ run : dotnet restore .\Coder.Desktop.sln
37
+ - name : Test
38
+ run : dotnet test .\Coder.Desktop.sln
39
+
40
+ build :
41
+ runs-on : windows-latest
42
+ steps :
43
+ - uses : actions/checkout@v4
44
+ - name : Setup dotnet
45
+ uses : actions/setup-dotnet@v4
46
+ with :
47
+ dotnet-version : 8.0.x
48
+ cache : true
49
+ - name : Restore dependencies
50
+ run : dotnet restore .\Coder.Desktop.sln
51
+ - name : Build
52
+ run : dotnet build .\Coder.Desktop.sln
53
+ - name : Publish
54
+ run : dotnet publish .\Coder.Desktop.sln -c Release -o .\publish
55
+ - name : Upload artifact
56
+ uses : actions/upload-artifact@v4
57
+ with :
58
+ name : publish
59
+ path : .\publish\
Original file line number Diff line number Diff line change @@ -401,3 +401,5 @@ FodyWeavers.xsd
401
401
.idea /** /workspace.xml
402
402
.idea /** /usage.statistics.xml
403
403
.idea /** /shelf
404
+
405
+ publish
Original file line number Diff line number Diff line change @@ -40,15 +40,16 @@ public Task ValidateAsync(string path, CancellationToken ct = default)
40
40
/// </summary>
41
41
public class AuthenticodeDownloadValidator : IDownloadValidator
42
42
{
43
+ public static readonly AuthenticodeDownloadValidator Coder = new ( "Coder Technologies Inc." ) ;
44
+
43
45
private readonly string _expectedName ;
44
46
47
+ // ReSharper disable once ConvertToPrimaryConstructor
45
48
public AuthenticodeDownloadValidator ( string expectedName )
46
49
{
47
50
_expectedName = expectedName ;
48
51
}
49
52
50
- public static AuthenticodeDownloadValidator Coder => new ( "Coder Technologies Inc." ) ;
51
-
52
53
public async Task ValidateAsync ( string path , CancellationToken ct = default )
53
54
{
54
55
FileSignatureInfo fileSigInfo ;
@@ -79,6 +80,7 @@ public class AssemblyVersionDownloadValidator : IDownloadValidator
79
80
{
80
81
private readonly string _expectedAssemblyVersion ;
81
82
83
+ // ReSharper disable once ConvertToPrimaryConstructor
82
84
public AssemblyVersionDownloadValidator ( string expectedAssemblyVersion )
83
85
{
84
86
_expectedAssemblyVersion = expectedAssemblyVersion ;
You can’t perform that action at this time.
0 commit comments