Skip to content

Commit

Permalink
Add CI with GitHub Actions (#4)
Browse files Browse the repository at this point in the history
Create GH Actions workflow dotnet.yml
  • Loading branch information
callmekoo authored Nov 14, 2022
1 parent c74b393 commit 734a15a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET

on:
[push]

jobs:
test:

runs-on: windows-2019

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore Source
- name: Build
run: dotnet build Source --no-restore
- name: Test
run: dotnet test Source\RetryableAssertions.Tests\RetryableAssertions.Tests.csproj --no-build --verbosity normal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net45;netcoreapp2.2</TargetFrameworks>
<TargetFrameworks>net45;netcoreapp3.1</TargetFrameworks>
<RootNamespace>Kontur.RetryableAssertions.Examples</RootNamespace>
<AssemblyName>Kontur.RetryableAssertions.Examples</AssemblyName>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net45;netcoreapp2.2</TargetFrameworks>
<TargetFrameworks>net45;netcoreapp3.1</TargetFrameworks>
<RootNamespace>Kontur.RetryableAssertions.Tests</RootNamespace>
<AssemblyName>Kontur.RetryableAssertions.Tests</AssemblyName>
</PropertyGroup>
Expand Down

0 comments on commit 734a15a

Please sign in to comment.