forked from SharpMap/SharpMap
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.58 KB
/
dotnetcore.yml
File metadata and controls
50 lines (41 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: .NET Core
on: [push]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.2.401
- name: Setup Nuget
uses: nuget/setup-nuget@v1
#- name: Setup MSBuild.exe
# uses: warrenbuckley/Setup-MSBuild@v1
#- name: Install packages into packages folder 1/2
# run: nuget restore SharpMap.Extensions/packages.config -OutputDirectory packages
#- name: Install packages into packages folder 2/2
# run: nuget restore SharpMap.SqlServerSpatialObjects/packages.config -OutputDirectory packages
#- name: MSBuild SharedAssemblyVersion
# run: msbuild SharpMap.targets /t:Version
- name: Build with dotnet
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
run: dotnet build SharpMap.sln --configuration ReleaseDotNet
- name: Setup NUnit TestRunner
run: nuget install NUnit.Console -Version 3.10.0 -OutputDirectory testrunner
- name: Perform tests
run: ../../../../testrunner/NUnit.ConsoleRunner.3.10.0/tools/nunit3-console.exe UnitTests.dll
working-directory:
./UnitTests/bin/Release/net472
# - name: Publish packages
# if: success()
# env:
# MYGET_API_KEY: ${{ secrets.MYGET_API_KEY }}
# run: dotnet nuget push SharpMap.Packages/SharpMap.*.nupkg --api-key $MYGET_API_KEY --source https://www.myget.org/F/sharpmap/api/v2/package --skip-duplicate
- name: Upload
uses: actions/upload-artifact@v1
with:
name: NuGet Package Files
path: SharpMap.Packages