Skip to content

Commit

Permalink
Initialize test reporting before build and add test badge to Readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aldaviva committed Oct 16, 2022
1 parent a8295da commit bca49f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/dotnetpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,24 @@ jobs:
- name: Clone
uses: actions/checkout@v3

- name: Initialize test reporting
uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}

- name: Restore
run: dotnet restore
run: dotnet restore --verbosity normal

- name: Build
run: dotnet build --no-restore --configuration Release
run: dotnet build --no-restore --configuration Release --verbosity normal

- name: Test
run: |
dotnet test --no-build --verbosity normal --configuration Release --collect:"XPlat Code Coverage" --settings Test/coverlet.runsettings --logger "trx;LogFileName=TestResults.xml"
mv Test/TestResults/*/coverage.info Test/TestResults
- name: Pack
run: dotnet pack ${{ env.ProjectName }} --no-build --configuration Release
run: dotnet pack ${{ env.ProjectName }} --no-build --configuration Release --verbosity normal

- name: Upload package
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Kasa
===

[![Nuget](https://img.shields.io/nuget/v/Kasa?logo=nuget)](https://www.nuget.org/packages/Kasa/) [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/Aldaviva/Kasa/.NET?logo=github)](https://github.com/Aldaviva/Kasa/actions/workflows/dotnetpackage.yml) [![Coveralls](https://img.shields.io/coveralls/github/Aldaviva/Kasa?logo=coveralls)](https://coveralls.io/github/Aldaviva/Kasa?branch=master)
[![Nuget](https://img.shields.io/nuget/v/Kasa?logo=nuget)](https://www.nuget.org/packages/Kasa/) [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/Aldaviva/Kasa/.NET?logo=github)](https://github.com/Aldaviva/Kasa/actions/workflows/dotnetpackage.yml) [![Testspace](https://img.shields.io/testspace/tests/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DggNTg0em0tNTU3IDBjNDIgMCA3Ny42Ny0xNC44MyAxMDctNDQuNXM0NC02NS4xNyA0NC0xMDYuNWMwLTQyLTE0LjY3LTc3LjY3LTQ0LTEwN3MtNjUtNDQtMTA3LTQ0Yy00MS4zMyAwLTc2LjgzIDE0LjY3LTEwNi41IDQ0UzAgMzkxIDAgNDMzYzAgNDEuMzMgMTQuODMgNzYuODMgNDQuNSAxMDYuNVMxMDkuNjcgNTg0IDE1MSA1ODR6IiBmaWxsPSIjZmZmIi8%2BPC9zdmc%2B)](https://aldaviva.testspace.com/spaces/191996) [![Coveralls](https://img.shields.io/coveralls/github/Aldaviva/Kasa?logo=coveralls)](https://coveralls.io/github/Aldaviva/Kasa?branch=master)

*Control TP-Link Kasa smart outlets/plugs*

Expand Down

0 comments on commit bca49f5

Please sign in to comment.