-
Notifications
You must be signed in to change notification settings - Fork 14
35 lines (33 loc) · 923 Bytes
/
dotnet.yml
File metadata and controls
35 lines (33 loc) · 923 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
name: .NET Core CI
on: [push]
jobs:
build:
name: ${{ matrix.os }}/dotnet ${{ matrix.dotnet }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
dotnet: [2.1.802, 3.0.100]
include:
- dotnet: 2.1.802
target: netcoreapp2.1
- dotnet: 3.0.100
target: netcoreapp3.0
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Restore NuGet
env:
TestingTarget: ${{ matrix.target }}
run: dotnet restore
- name: Build with dotnet ${{ matrix.dotnet }}
env:
TestingTarget: ${{ matrix.target }}
run: dotnet build
- name: Test with xUnit
env:
TestingTarget: ${{ matrix.target }}
run: dotnet test --no-build