-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 998 Bytes
/
BuildAndTest.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
44
45
46
47
48
49
name: Build and Test
on:
push:
paths:
- 'src/**'
- '.github/workflows/**'
branches:
- '**'
tags-ignore:
- '*.*.*'
pull_request:
paths:
- 'src/**'
- '.github/workflows/**'
branches:
- '**'
tags-ignore:
- '*.*.*'
jobs:
build:
runs-on: ubuntu-16.04
steps:
- name: checkout
uses: actions/checkout@v1
- name: setup .net core 2.2.207
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.2.207
- name: setup .net core 3.1.100
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.100
# workaround for using multiple dotnet core installs
- name: setup multiple sdks
run: |
rsync -a ${DOTNET_ROOT/3.1.100/2.2.207}/* $DOTNET_ROOT/
dotnet --info
- name: build
run: dotnet build -c Release src/Dahomey.Cbor.AspNetCore
- name: test
run: dotnet test -c Release src/Dahomey.Cbor.AspNetCore.Tests