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