Skip to content

Commit 05767dc

Browse files
committed
Tried to split more the files
1 parent 0b187b5 commit 05767dc

5 files changed

+6
-85
lines changed

.github/workflows/dotnet.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ on:
1010
branches: [ "master" ]
1111

1212
jobs:
13-
build-and-test:
13+
build:
1414
uses: ./.github/workflows/workflow-build-and-tests.yml
1515

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ permissions:
1111
contents: write
1212

1313
jobs:
14-
build-and-test:
14+
build-and-tests:
1515
uses: ./.github/workflows/workflow-build-and-tests.yml
1616

1717
publish:
1818
name: Publish and package
1919
runs-on: windows-latest
20-
needs: [build, tests, e2e-tests]
20+
needs: [build-and-tests]
2121

2222
steps:
2323
- uses: actions/checkout@v4

.github/workflows/workflow-build-and-tests.yml

+3-80
Original file line numberDiff line numberDiff line change
@@ -5,89 +5,12 @@ on:
55

66
jobs:
77
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
359

3610
tests:
37-
name: .Run Unit Tests
38-
runs-on: ubuntu-latest
3911
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
5513

5614
e2e-tests:
57-
runs-on: ubuntu-latest
5815
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

.github/workflows/workflow-e2e-tests.yml

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
jobs:
77
e2e-tests:
88
runs-on: ubuntu-latest
9-
needs: build
109

1110
steps:
1211
- name: Setup .NET

.github/workflows/workflow-tests.yml

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
jobs:
77
tests:
88
runs-on: ubuntu-latest
9-
needs: build
109

1110
steps:
1211
- name: Setup .NET

0 commit comments

Comments
 (0)