Skip to content

Commit f125878

Browse files
authored
Updating the testing (#57)
* Updating pipeline to test templates * More testing fixing
1 parent 5a7dadf commit f125878

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/build.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ jobs:
3232
run: dotnet pack --configuration Release -o .
3333

3434
- name: Upload Artifacts
35-
if: ${{ github.event_name != 'pull_request' }}
3635
uses: actions/upload-artifact@v3
3736
with:
3837
name: NuGet
@@ -56,11 +55,11 @@ jobs:
5655
Push-Location TestConsoleApp
5756
dotnet new keboo.console
5857
dotnet test
59-
dotnet pack --configuration Release -o ${{env.DOTNET_ROOT}}/NuGet
58+
dotnet pack --configuration Release -o ./NuGet
6059
6160
test-wpf:
6261
if: ${{ github.event_name == 'pull_request' }}
63-
runs-on: ubuntu-latest
62+
runs-on: windows-latest
6463
needs: build
6564

6665
steps:
@@ -95,7 +94,7 @@ jobs:
9594
Push-Location TestLibrary
9695
dotnet new keboo.nuget
9796
dotnet test
98-
dotnet pack --configuration Release -o ${{env.DOTNET_ROOT}}/NuGet
97+
dotnet pack --configuration Release -o ./NuGet
9998
10099
automerge:
101100
if: ${{ github.event_name == 'pull_request' }}
@@ -112,10 +111,10 @@ jobs:
112111
use-github-auto-merge: true
113112

114113
push_nugets:
115-
needs: build
116114
if: ${{ github.event_name != 'pull_request' }}
117-
runs-on: ubuntu-latest
118115
name: Push NuGets
116+
runs-on: ubuntu-latest
117+
needs: [build, test-console, test-wpf, test-library]
119118

120119
steps:
121120
- name: Download NuGet Artifacts

0 commit comments

Comments
 (0)