@@ -12,98 +12,23 @@ permissions:
12
12
13
13
jobs :
14
14
build :
15
- name : Build the entire solution
16
- runs-on : windows-latest
17
-
18
- steps :
19
- - uses : actions/checkout@v4
20
- with :
21
- submodules : recursive
15
+ name : .Build the entire solution
16
+ uses : ./.github/workflows/workflow-build.yml
22
17
23
- - name : Setup .NET
24
- uses : actions/setup-dotnet@v4
25
- with :
26
- dotnet-version : 9.0.x
27
-
28
- - name : Restore .NET dependencies
29
- working-directory : ./src
30
- run : dotnet restore
31
-
32
- - name : Build
33
- working-directory : ./src
34
- run : dotnet build --no-restore
35
-
36
- - name : Upload Build Artifact
37
- uses : actions/upload-artifact@v4
38
- with :
39
- name : buildArtifact
40
- path : ./src
41
- retention-days : 7
42
-
43
18
tests :
44
- name : Run Unit Tests
45
- runs-on : ubuntu-latest
19
+ name : .Run Unit Tests
46
20
needs : build
47
-
48
- steps :
49
- - name : Setup .NET
50
- uses : actions/setup-dotnet@v4
51
- with :
52
- dotnet-version : 9.0.x
53
-
54
- - uses : actions/download-artifact@v4
55
- with :
56
- name : buildArtifact
57
- path : ./src
58
-
59
- - name : Test
60
- working-directory : ./src/NodeDev.Tests
61
- run : dotnet test --no-build --verbosity normal
21
+ uses : ./.github/workflows/workflow-tests.yml
62
22
63
23
e2e-tests :
64
- name : Run End To End Tests
65
- runs-on : ubuntu-latest
24
+ name : .Run End To End Tests
66
25
needs : build
67
-
68
- steps :
69
- - name : Setup .NET
70
- uses : actions/setup-dotnet@v4
71
- with :
72
- dotnet-version : 9.0.x
73
-
74
- - uses : actions/download-artifact@master
75
- with :
76
- name : buildArtifact
77
- path : ./src
78
-
79
- - name : Build Necessary for Playwright
80
- working-directory : ./src/NodeDev.EndToEndTests
81
- run : dotnet build
82
-
83
- - name : Allow run
84
- run : chmod -R +x ./src/NodeDev.Blazor.Server/bin
85
-
86
- - name : Ensure browsers are installed
87
- run : pwsh ./src/NodeDev.EndToEndTests/bin/Debug/net9.0/playwright.ps1 install --with-deps
88
-
89
- - name : Test
90
- env :
91
- HEADLESS : true
92
- working-directory : ./src/NodeDev.EndToEndTests
93
- run : dotnet test --no-build --verbosity normal
94
-
95
- - name : Upload std Artifact
96
- if : failure()
97
- uses : actions/upload-artifact@v4
98
- with :
99
- name : logServer
100
- path : ./src/NodeDev.Blazor.Server/logs
101
- retention-days : 7
26
+ uses : ./.github/workflows/workflow-e2e-tests.yml
102
27
103
28
publish :
104
29
name : Publish and package
105
30
runs-on : windows-latest
106
- needs : [build, tests, e2e-tests]
31
+ needs : [build,tests,e2e-tests]
107
32
108
33
steps :
109
34
- uses : actions/checkout@v4
0 commit comments