forked from elmish/Elmish.WPF
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (29 loc) · 909 Bytes
/
continuous_integration.yml
File metadata and controls
40 lines (29 loc) · 909 Bytes
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
name: Continuous Integration
on:
push:
branches: [ master, v3 ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Install .NET SDK 3.1.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- name: Install .NET SDK 5.0.103
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.103
- name: Restore
run: dotnet restore src/Elmish.WPF.sln
- name: Build
run: dotnet build --no-restore --configuration Release src/Elmish.WPF.sln
- name: Test
run: dotnet test --no-build --configuration Release src/Elmish.WPF.Tests/Elmish.WPF.Tests.fsproj
- name: Publish NuGet
uses: brandedoutcast/publish-nuget@v2.5.5
with:
PROJECT_FILE_PATH: "src/Elmish.WPF/Elmish.WPF.fsproj"
PACKAGE_NAME: "Elmish.WPF"
NUGET_KEY: ${{secrets.NUGET_API_KEY}}