File tree Expand file tree Collapse file tree 3 files changed +65
-2
lines changed Expand file tree Collapse file tree 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
401401.idea /** /workspace.xml
402402.idea /** /usage.statistics.xml
403403.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)
4040/// </summary>
4141public class AuthenticodeDownloadValidator : IDownloadValidator
4242{
43+ public static readonly AuthenticodeDownloadValidator Coder = new ( "Coder Technologies Inc." ) ;
44+
4345 private readonly string _expectedName ;
4446
47+ // ReSharper disable once ConvertToPrimaryConstructor
4548 public AuthenticodeDownloadValidator ( string expectedName )
4649 {
4750 _expectedName = expectedName ;
4851 }
4952
50- public static AuthenticodeDownloadValidator Coder => new ( "Coder Technologies Inc." ) ;
51-
5253 public async Task ValidateAsync ( string path , CancellationToken ct = default )
5354 {
5455 FileSignatureInfo fileSigInfo ;
@@ -79,6 +80,7 @@ public class AssemblyVersionDownloadValidator : IDownloadValidator
7980{
8081 private readonly string _expectedAssemblyVersion ;
8182
83+ // ReSharper disable once ConvertToPrimaryConstructor
8284 public AssemblyVersionDownloadValidator ( string expectedAssemblyVersion )
8385 {
8486 _expectedAssemblyVersion = expectedAssemblyVersion ;
You can’t perform that action at this time.
0 commit comments