-
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.05 KB
/
dotnetcore.yml
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
name: DotNetStandard-General
on:
pull_request:
branches:
- '*'
- '!release/*'
push:
branches:
- '*'
- '!release/*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core 2.2.108
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.2.108
- name: Setup .NET Core 3.1.302
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.302
- name: Setup side by side .NET SDKs on Windows
if: matrix.os == 'windows-latest'
run: |
SET DOTNET_22_ROOT=%DOTNET_ROOT:3.1.302=2.2.108%
xcopy /s /y /d %DOTNET_31_ROOT% %DOTNET_ROOT%
shell: cmd
- name: Setup side by side .NET SDKs on ${{ matrix.os }}
if: matrix.os != 'windows-latest'
run: |
rsync -a ${DOTNET_ROOT/3.1.302/2.2.108}/* $DOTNET_ROOT/
- name: Build with netcoreapp
run: dotnet build --configuration Release
- name: Unit Testing
run: dotnet test