-
-
Notifications
You must be signed in to change notification settings - Fork 453
111 lines (85 loc) · 2.82 KB
/
build.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: Build
on: [push, pull_request]
env:
DOTNET_NOLOGO: 1
jobs:
windows:
name: Windows
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
3.x.x
6.x.x
8.x.x
- name: Restore Fody
run: dotnet restore Fody.sln
- name: Build Fody
run: dotnet build --configuration Release --no-restore Fody.sln
- name: Test Fody
run: dotnet test --configuration Release --no-build Fody.sln
- name: Restore Integration
run: dotnet restore Integration/Integration.sln
- name: Build Integration
run: dotnet build --configuration Release --no-restore Integration/Integration.sln
- name: Test Integration
run: dotnet test --configuration Release --no-build Integration/Integration.sln
- name: Upload NuGet
uses: actions/upload-artifact@v2
with:
name: NuGet
path: nugets/*.nupkg
linux:
name: Linux
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
3.x.x
6.x.x
8.x.x
- name: Restore Fody
run: dotnet restore Fody.sln
- name: Build Fody
run: dotnet build --configuration Release --no-restore Fody.sln
# TODO Uncomment this when tests pass on Linux
# - name: Test Fody
# run: dotnet test --configuration Release --framework netcoreapp3.1 --no-build Fody.sln
- name: Restore Integration
run: dotnet restore Integration/Integration.sln
- name: Build Integration
run: dotnet build --configuration Release --no-restore Integration/Integration.sln
- name: Test Integration
run: dotnet test --configuration Release --framework netcoreapp3.1 --no-build Integration/Integration.sln
windows-vs:
name: Windows VS
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
- name: Setup VSTest
uses: darenm/Setup-VSTest@v1
- name: Build Fody
run: msbuild -restore Fody.sln /p:Configuration=Release /verbosity:minimal
- name: Test Fody
run: vstest.console Tests/bin/Release/net472/Tests.dll
- name: Build Integration
run: msbuild -restore Integration/Integration.sln /p:Configuration=Release /verbosity:minimal
- name: Test Integration
run: vstest.console Integration/Tests/bin/Release/net472/Tests.dll