Skip to content

Commit

Permalink
Merge pull request #92 from quinmars/add-unittests-workflow
Browse files Browse the repository at this point in the history
Add a github workflow to automatically run the unit tests
  • Loading branch information
awcullen authored Sep 18, 2019
2 parents 949b39c + f5986f9 commit e74e78a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Unit Tests

on: [pull_request, push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.2.108
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Run unit tests
run: dotnet test --filter "FullyQualifiedName~UnitTests"
3 changes: 2 additions & 1 deletion UaClient.UnitTests/Workstation.UaClient.UnitTests.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net461</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
<AssemblyName>Workstation.UaClient.UnitTests</AssemblyName>
<RootNamespace>Workstation.UaClient</RootNamespace>
<Version>2.0.0</Version>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
<LangVersion>latest</LangVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions UaClient/Workstation.UaClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<IncludeSymbols>true</IncludeSymbols>
<GenerateDocumentationFile Condition=" '$(Configuration)' == 'Release' ">true</GenerateDocumentationFile>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<LangVersion>latest</LangVersion>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit e74e78a

Please sign in to comment.