-
Notifications
You must be signed in to change notification settings - Fork 3
93 lines (86 loc) · 2.42 KB
/
dotnet.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: Build and Test
on: [push, pull_request]
defaults:
run:
working-directory: src
jobs:
test-windows-x64:
runs-on: windows-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
steps:
- uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- run: dotnet --info
- name: Test (.NET 7.0/Debug)
run: dotnet test -f net7.0 -c Debug
- name: Test (.NET 7.0/Release)
run: dotnet test -f net7.0 -c Release
- name: Test (.NET 6.0/Debug)
run: dotnet test -f net6.0 -c Debug
- name: Test (.NET 6.0/Release)
run: dotnet test -f net6.0 -c Release
test-linux-x64:
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
steps:
- uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- run: dotnet --info
- name: Test (.NET 7.0/Debug)
run: dotnet test -f net7.0 -c Debug
- name: Test (.NET 7.0/Release)
run: dotnet test -f net7.0 -c Release
- name: Test (.NET 6.0/Debug)
run: dotnet test -f net6.0 -c Debug
- name: Test (.NET 6.0/Release)
run: dotnet test -f net6.0 -c Release
test-macos-x64:
runs-on: macos-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
steps:
- uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- run: dotnet --info
- name: Test (.NET 7.0/Debug)
run: dotnet test -f net7.0 -c Debug
- name: Test (.NET 7.0/Release)
run: dotnet test -f net7.0 -c Release
- name: Test (.NET 6.0/Debug)
run: dotnet test -f net6.0 -c Debug
- name: Test (.NET 6.0/Release)
run: dotnet test -f net6.0 -c Release
test-linux-musl-x64:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/dotnet/sdk:7.0-alpine
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
steps:
- uses: actions/checkout@v4
- run: dotnet --info
- name: Test (.NET 7.0/Debug)
run: dotnet test -f net7.0 -c Debug
- name: Test (.NET 7.0/Release)
run: dotnet test -f net7.0 -c Release