-
Notifications
You must be signed in to change notification settings - Fork 56
111 lines (89 loc) · 3.87 KB
/
test.yml
File metadata and controls
111 lines (89 loc) · 3.87 KB
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: Test
on:
push:
branches:
- master
paths:
- 'src/**'
- 'test/**'
- 'shared/**'
- '.github/workflows/**'
env:
SOLUTION: Rougamo.sln
jobs:
windows:
name: Windows
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v3.0.3
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
8.0.x
9.0.x
- name: Restore NuGets
run: dotnet restore ${{ env.SOLUTION }}
- name: Build Solution in DEBUG
run: dotnet build --configuration Debug --no-restore ${{ env.SOLUTION }}
- name: Test in DEBUG
run: dotnet test --configuration Debug --no-build ${{ env.SOLUTION }}
- name: Build Solution in RELEASE
run: dotnet build --configuration Release --no-restore ${{ env.SOLUTION }}
- name: Test in RELEASE
run: dotnet test --configuration Release --no-build ${{ env.SOLUTION }}
linux:
name: Linux
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v3.0.3
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
7.0.x
8.0.x
9.0.x
- name: Install OpenSSL 1.1
run: |
wget http://old-releases.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu4.4_amd64.deb
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu4.4_amd64.deb
- name: Restore NuGets
run: dotnet restore ${{ env.SOLUTION }}
- name: Build Solution in DEBUG
run: dotnet build --configuration Debug --no-restore ${{ env.SOLUTION }}
- name: Test in DEBUG with netcoreapp3.1
run: dotnet test --configuration Debug --no-build --framework netcoreapp3.1 test/Rougamo.Fody.Tests/Rougamo.Fody.Tests.csproj
- name: Test in DEBUG with net6.0
run: dotnet test --configuration Debug --no-build --framework net6.0 test/Rougamo.Fody.Tests/Rougamo.Fody.Tests.csproj
- name: Test in DEBUG with net8.0
run: dotnet test --configuration Debug --no-build --framework net8.0 test/Rougamo.Fody.Tests/Rougamo.Fody.Tests.csproj
- name: Test in DEBUG with net9.0
run: dotnet test --configuration Debug --no-build --framework net9.0 test/Rougamo.Fody.Tests/Rougamo.Fody.Tests.csproj
- name: Test Analyzers in DEBUG with net8.0
run: dotnet test --configuration Debug --no-build --framework net8.0 test/Rougamo.Analyzers.Tests/Rougamo.Analyzers.Tests.csproj
- name: Build Solution in RELEASE
run: dotnet build --configuration Release --no-restore ${{ env.SOLUTION }}
- name: Test in RELEASE with netcoreapp3.1
run: dotnet test --configuration Release --no-build --framework netcoreapp3.1 test/Rougamo.Fody.Tests/Rougamo.Fody.Tests.csproj
- name: Test in RELEASE with net6.0
run: dotnet test --configuration Release --no-build --framework net6.0 test/Rougamo.Fody.Tests/Rougamo.Fody.Tests.csproj
- name: Test in RELEASE with net8.0
run: dotnet test --configuration Release --no-build --framework net8.0 test/Rougamo.Fody.Tests/Rougamo.Fody.Tests.csproj
- name: Test in RELEASE with net9.0
run: dotnet test --configuration Release --no-build --framework net9.0 test/Rougamo.Fody.Tests/Rougamo.Fody.Tests.csproj
- name: Test in RELEASE with net8.0
run: dotnet test --configuration Release --no-build --framework net8.0 test/Rougamo.Analyzers.Tests/Rougamo.Analyzers.Tests.csproj