Skip to content

Commit 19dec0c

Browse files
author
Warren Buckley
authored
Merge pull request #21 from umbraco-community/feature/GH-workflow-add-tests
Adds in dotnet test into the GH Action workflow
2 parents ba61010 + 41bec5e commit 19dec0c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/dotnet.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ jobs:
7575
- name: Build
7676
run: dotnet build --no-restore
7777
working-directory: Our.Umbraco.TagHelpers
78+
79+
- name: Test
80+
run: dotnet test
81+
working-directory: Our.Umbraco.TagHelpers.Tests
7882

7983
- name: Dotnet Pack
8084
run: dotnet pack --output ../build.out/
@@ -87,4 +91,5 @@ jobs:
8791
path: ./build.out/
8892

8993
- name: Push to GitHub Nuget Repo
94+
if: ${{ github.event_name != 'pull_request' }}
9095
run: dotnet nuget push ./build.out/*.nupkg --skip-duplicate --source https://nuget.pkg.github.com/umbraco-community/index.json --api-key ${{ github.token }}

0 commit comments

Comments
 (0)