forked from aws/aws-xray-sdk-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.22 KB
/
ci.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
50
51
name: Continuous Build
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-test:
runs-on: windows-latest
env:
DOTNET_MULTILEVEL_LOOKUP: 1
strategy:
fail-fast: false
matrix:
version: [net452, net462, netcoreapp2.0, netcoreapp3.1, net6.0]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.0.x'
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Install dependencies
run: dotnet restore sdk/AWSXRayRecorder.sln
- name: Build solution
run: dotnet build sdk/AWSXRayRecorder.sln --configuration Release --no-restore
- name: Run tests
run: >-
dotnet test sdk/test/UnitTests/bin/Release/${{matrix.version}}/AWSXRayRecorder.UnitTests.dll
--configuration Release
--no-build
--logger "console;verbosity=detailed"