Skip to content

Commit

Permalink
Changes to github actions
Browse files Browse the repository at this point in the history
* Adds github action yaml
* Removes travis yaml
* Upgrades sample projects to use .net core 3.1
  • Loading branch information
joncloud committed Jun 12, 2020
1 parent 43a38be commit aeec3ba
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 36 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: .NET Core

on:
push:
branches: [ publish ]

pull_request:
branches: [ publish ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'

- name: Install dependencies
run: dotnet restore

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

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

- name: Pack
run: dotnet pack --configuration Release --no-build --no-restore --version-suffix="beta$GITHUB_RUN_ID" ./src/ThorNet/
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

15 changes: 0 additions & 15 deletions Dockerfile

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Thor.NET

[![Travis](https://img.shields.io/travis/joncloud/thor_net.svg)](https://travis-ci.org/joncloud/thor_net/)
[![NuGet](https://img.shields.io/nuget/v/ThorNet.svg)](https://www.nuget.org/packages/ThorNet/)

<img src="https://raw.githubusercontent.com/joncloud/thor_net/master/nuget.png" alt="thor.net" />
Expand Down
2 changes: 1 addition & 1 deletion src/ThorNet.Sample/ThorNet.Sample.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

<PropertyGroup>
Expand Down
11 changes: 7 additions & 4 deletions tests/ThorNet.UnitTests/ThorNet.UnitTests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

<PropertyGroup>
Expand All @@ -17,9 +17,12 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
<PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.4.1" />
</ItemGroup>

</Project>

0 comments on commit aeec3ba

Please sign in to comment.