Skip to content

Commit 44fc5c7

Browse files
authored
feat(ui-web): refactor the web backend, create tests (#88)
1 parent 13384f5 commit 44fc5c7

File tree

77 files changed

+2032
-851
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+2032
-851
lines changed

.github/workflows/DotNET-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ jobs:
3434
- uses: actions/checkout@v3
3535
with:
3636
fetch-depth: 0
37-
- name: Cache .nuke/temp, ~/.nuget/packages
37+
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
3838
uses: actions/cache@v3
3939
with:
4040
path: |
4141
.nuke/temp
4242
~/.nuget/packages
43-
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
44-
- name: Run './build.cmd Backend_SonarScan_End'
43+
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
44+
- name: 'Run: Backend_SonarScan_End'
4545
run: ./build.cmd Backend_SonarScan_End
4646
env:
4747
SonarToken: ${{ secrets.SONAR_TOKEN }}

.github/workflows/DotNET-reporting-on-build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
jobs:
1212
upload:
1313
runs-on: ubuntu-latest
14-
if: github.event.workflow_run.conclusion == 'success'
1514
steps:
1615
- uses: phoenix-actions/test-reporting@v9
1716
with:

.github/workflows/JS-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ jobs:
3434
- uses: actions/checkout@v3
3535
with:
3636
fetch-depth: 0
37-
- name: Cache .nuke/temp, ~/.nuget/packages
37+
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
3838
uses: actions/cache@v3
3939
with:
4040
path: |
4141
.nuke/temp
4242
~/.nuget/packages
43-
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
44-
- name: Run './build.cmd Frontend_Tests_Ci'
43+
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
44+
- name: 'Run: Frontend_Tests_Ci'
4545
run: ./build.cmd Frontend_Tests_Ci
4646
env:
4747
SonarTokenUi: ${{ secrets.SONAR_TOKEN_UI }}

.github/workflows/JS-reporting-on-build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
jobs:
1212
upload:
1313
runs-on: ubuntu-latest
14-
if: github.event.workflow_run.conclusion == 'success'
1514
steps:
1615
- uses: phoenix-actions/test-reporting@v9
1716
with:

.github/workflows/Release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ jobs:
4646
- uses: actions/checkout@v3
4747
with:
4848
fetch-depth: 0
49-
- name: Cache .nuke/temp, ~/.nuget/packages
49+
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
5050
uses: actions/cache@v3
5151
with:
5252
path: |
5353
.nuke/temp
5454
~/.nuget/packages
55-
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }}
56-
- name: Run './build.cmd Publish'
55+
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
56+
- name: 'Run: Publish'
5757
run: ./build.cmd Publish
5858
env:
5959
ElasticProvider: ${{ github.event.inputs.ElasticProvider }}

.nuke/build.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "http://json-schema.org/draft-04/schema#",
3-
"title": "Build Schema",
43
"$ref": "#/definitions/build",
4+
"title": "Build Schema",
55
"definitions": {
66
"build": {
77
"type": "object",
@@ -161,4 +161,4 @@
161161
}
162162
}
163163
}
164-
}
164+
}

build/Build.Backend.Tests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
partial class Build : NukeBuild
99
{
10-
[PackageExecutable(
10+
[NuGetPackage(
1111
packageId: "dotnet-coverage",
1212
packageExecutable: "dotnet-coverage.dll"
1313
)]

build/Build.Backend.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
using Nuke.Common.Tools.DotNet;
44
using Nuke.Common.Utilities.Collections;
55
using System.Diagnostics.CodeAnalysis;
6-
using static Nuke.Common.IO.FileSystemTasks;
7-
using static Nuke.Common.IO.PathConstruction;
86
using static Nuke.Common.Tools.DotNet.DotNetTasks;
97

108
partial class Build : NukeBuild
@@ -13,8 +11,8 @@ partial class Build : NukeBuild
1311
Target Backend_Clean => _ => _
1412
.Executes(() =>
1513
{
16-
SourceDirectory.GlobDirectories("**/bin", "**/obj").ForEach(DeleteDirectory);
17-
TestsDirectory.GlobDirectories("**/bin", "**/obj").ForEach(DeleteDirectory);
14+
SourceDirectory.GlobDirectories("**/bin", "**/obj").ForEach(AbsolutePathExtensions.DeleteDirectory);
15+
TestsDirectory.GlobDirectories("**/bin", "**/obj").ForEach(AbsolutePathExtensions.DeleteDirectory);
1816
DotNetClean();
1917
});
2018

build/Build.Frontend.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
using Nuke.Common.Tools.Npm;
66
using Nuke.Common.Utilities.Collections;
77
using System.Diagnostics.CodeAnalysis;
8-
using static Nuke.Common.IO.FileSystemTasks;
9-
using static Nuke.Common.IO.PathConstruction;
108

119
partial class Build : NukeBuild
1210
{
@@ -16,7 +14,7 @@ partial class Build : NukeBuild
1614
{
1715
FrontendWorkingDirectory
1816
.GlobDirectories("**/node_modules", "**/.parcel-cache", "**/coverage")
19-
.ForEach(DeleteDirectory);
17+
.ForEach(AbsolutePathExtensions.DeleteDirectory);
2018
});
2119

2220
Target Frontend_Restore => _ => _

build/Build.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ partial class Build : NukeBuild
6464
.Executes(() =>
6565
{
6666
var localOutput = RootDirectory / "nugets-output";
67-
if (IsLocalBuild) FileSystemTasks.EnsureExistingDirectory(localOutput);
67+
if (IsLocalBuild) AbsolutePathExtensions.CreateDirectory(localOutput);
6868

6969
OutputDirectory.GlobFiles("*.nupkg")
7070
.ForEach(filePath =>

0 commit comments

Comments
 (0)