Skip to content

Commit 50f40ec

Browse files
committed
Update other workflows
1 parent 38aa647 commit 50f40ec

File tree

3 files changed

+31
-19
lines changed

3 files changed

+31
-19
lines changed

.github/workflows/wf-build-release-ci.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,13 @@ jobs:
2020
1.0.x
2121
2.0.x
2222
5.0.x
23-
6.0.x
23+
6.0.x
2424
25-
- name: Setup MSBuild Path
26-
uses: microsoft/setup-msbuild@v1
27-
28-
- name: Setup NuGet
29-
uses: NuGet/setup-nuget@v2
30-
3125
- name: Restore NuGet Packages
32-
run: nuget restore QRCoder.sln
26+
run: dotnet restore
3327

3428
- name: Build library
35-
run: msbuild QRCoder.sln /p:Configuration=Release /p:NoWarn="1182" /p:NoWarn="1701" /nr:false /t:Rebuild
29+
run: dotnet build -c Release --no-restore
3630

3731
- name: Upload artifacts
3832
uses: actions/upload-artifact@v4
@@ -60,28 +54,40 @@ jobs:
6054
6.0.x
6155
6256
- name: Run test .NET 3.5
57+
working-directory: QRCoderTests
6358
run: dotnet test -c Release -f net35 --nologo --no-build # No coverage for NET3.5 because of bug in combination with Coverlet+Stronh naming
6459

6560
- name: Run test .NET 4.52
61+
working-directory: QRCoderTests
6662
run: dotnet test -c Release -f net452 --nologo --no-build # No coverage for NET4.5 because of bug in combination with Coverlet+Strong naming
6763

6864
- name: Run test .NET Core 1.1
65+
working-directory: QRCoderTests
6966
run: dotnet test -c Release -f netcoreapp1.1 --nologo # No coverage for .NETCORE 1.1 because Coverlet doesn't support it https://github.com/coverlet-coverage/coverlet/issues/466
7067

7168
- name: Run test .NET Core 2.0
69+
working-directory: QRCoderTests
7270
run: dotnet test -c Release -f netcoreapp2.0 --nologo /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
7371

7472
- name: Run test .NET 5.0
73+
working-directory: QRCoderTests
7574
run: dotnet test -c Release -f net5.0 --nologo --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
7675

7776
- name: Run test .NET 5.0 Windows
77+
working-directory: QRCoderTests
7878
run: dotnet test -c Release -f net5.0-windows --nologo --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
7979

8080
- name: Run test .NET 6.0
81+
working-directory: QRCoderTests
8182
run: dotnet test -c Release -f net6.0 --nologo --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
8283

8384
- name: Run test .NET 6.0 Windows
85+
working-directory: QRCoderTests
8486
run: dotnet test -c Release -f net6.0-windows --nologo --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
87+
88+
- name: Run API approval tests
89+
working-directory: QRCoderApiTests
90+
run: dotnet test -c Release --nologo --no-build
8591

8692
- name: Codecov update netcoreapp2.0
8793
uses: codecov/codecov-action@v2

.github/workflows/wf-build-release.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,13 @@ jobs:
2121
1.0.x
2222
2.0.x
2323
5.0.x
24-
6.0.x
24+
6.0.x
2525
26-
- name: Setup MSBuild Path
27-
uses: microsoft/setup-msbuild@v1
28-
29-
- name: Setup NuGet
30-
uses: NuGet/setup-nuget@v2
31-
3226
- name: Restore NuGet Packages
33-
run: nuget restore QRCoder.sln
27+
run: dotnet restore
3428

3529
- name: Build library
36-
run: msbuild QRCoder.sln /p:Configuration=Release /p:NoWarn="1182" /p:NoWarn="1701" /nr:false /t:Rebuild
30+
run: dotnet build -c Release --no-restore
3731

3832
- name: Upload artifacts
3933
uses: actions/upload-artifact@v4
@@ -61,28 +55,40 @@ jobs:
6155
6.0.x
6256
6357
- name: Run test .NET 3.5
58+
working-directory: QRCoderTests
6459
run: dotnet test -c Release -f net35 --nologo --no-build # No coverage for NET3.5 because of bug in combination with Coverlet+Stronh naming
6560

6661
- name: Run test .NET 4.52
62+
working-directory: QRCoderTests
6763
run: dotnet test -c Release -f net452 --nologo --no-build # No coverage for NET4.5 because of bug in combination with Coverlet+Strong naming
6864

6965
- name: Run test .NET Core 1.1
66+
working-directory: QRCoderTests
7067
run: dotnet test -c Release -f netcoreapp1.1 --nologo # No coverage for .NETCORE 1.1 because Coverlet doesn't support it https://github.com/coverlet-coverage/coverlet/issues/466
7168

7269
- name: Run test .NET Core 2.0
70+
working-directory: QRCoderTests
7371
run: dotnet test -c Release -f netcoreapp2.0 --nologo /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
7472

7573
- name: Run test .NET 5.0
74+
working-directory: QRCoderTests
7675
run: dotnet test -c Release -f net5.0 --nologo --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
7776

7877
- name: Run test .NET 5.0 Windows
78+
working-directory: QRCoderTests
7979
run: dotnet test -c Release -f net5.0-windows --nologo --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
8080

8181
- name: Run test .NET 6.0
82+
working-directory: QRCoderTests
8283
run: dotnet test -c Release -f net6.0 --nologo --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
8384

8485
- name: Run test .NET 6.0 Windows
86+
working-directory: QRCoderTests
8587
run: dotnet test -c Release -f net6.0-windows --nologo --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
88+
89+
- name: Run API approval tests
90+
working-directory: QRCoderApiTests
91+
run: dotnet test -c Release --nologo --no-build
8692

8793
- name: Codecov update netcoreapp2.0
8894
uses: codecov/codecov-action@v2

.github/workflows/wf-build-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363

6464
- name: Run test .NET Core 1.1
6565
working-directory: QRCoderTests
66-
run: dotnet test -c Release -f netcoreapp1.1 --nologo # No coverage for .NETCORE 1.1 because Coverlet doesn't support it https://github.com/coverlet-coverage/coverlet/issues/466
66+
run: dotnet test -c Release -f netcoreapp1.1 --nologo # No coverage for .NETCORE 1.1 because Coverlet doesn't support it https://github.com/coverlet-coverage/coverlet/issues/466
6767

6868
- name: Run test .NET Core 2.0
6969
working-directory: QRCoderTests

0 commit comments

Comments
 (0)