Skip to content

Commit 9646902

Browse files
committed
Updated build targets from .NET7 to .NET8
Added .NET4 dev pack to installation
1 parent d1f063a commit 9646902

File tree

3 files changed

+29
-11
lines changed

3 files changed

+29
-11
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,15 @@ jobs:
3737
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
3838
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3939
# this is fixed to just one version so we only run the analysis operation once, not once for each version of the runtime
40-
dotnet-version: [ '7.0.x' ]
40+
dotnet-version: [ '8.0.x' ]
4141
steps:
42-
- name: Checkout repository
43-
uses: actions/checkout@v3
42+
- name: Install .NET Framework 4.0 Developer Pack
43+
run: |
44+
Invoke-WebRequest -Uri "https://download.microsoft.com/download/1/5/7/157F3F3E-3E3B-4F6E-9F3C-3D3E3F3E3F3E/NDP40-DevPack-KB2600211-x86-x64.exe" -OutFile "ndp40.exe"
45+
Start-Process -FilePath "ndp40.exe" -ArgumentList "/quiet" -Wait
46+
47+
- name: Checkout Code
48+
uses: actions/checkout@v4
4449

4550
# Initializes the CodeQL tools for scanning.
4651
- name: Initialize CodeQL
@@ -63,6 +68,7 @@ jobs:
6368
5.0.x
6469
6.0.x
6570
7.0.x
71+
8.0.x
6672
6773
- name: Setup dependencies caching
6874
uses: actions/cache@v3

.github/workflows/dotnetcore.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,23 @@ jobs:
1313
matrix:
1414
os: [windows-latest]
1515
# dotnet-version: [ '3.1.x', '5.0.x', '6.0.x', '7.0.x' ]
16-
dotnet-version: [ '7.0.x' ]
16+
dotnet-version: [ '8.0.x' ]
1717
steps:
18+
- name: Install .NET Framework 4.0 Developer Pack
19+
run: |
20+
Invoke-WebRequest -Uri "https://download.microsoft.com/download/1/5/7/157F3F3E-3E3B-4F6E-9F3C-3D3E3F3E3F3E/NDP40-DevPack-KB2600211-x86-x64.exe" -OutFile "ndp40.exe"
21+
Start-Process -FilePath "ndp40.exe" -ArgumentList "/quiet" -Wait
22+
1823
- name: Checkout Code
19-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2025

2126
- name: Setup dotnet CLI
2227
uses: actions/setup-dotnet@v3.2.0
2328
with:
2429
dotnet-version: |
2530
6.0.x
2631
7.0.x
32+
8.0.x
2733
2834
- name: Setup dependencies caching
2935
uses: actions/cache@v3
@@ -84,8 +90,8 @@ jobs:
8490
# Use always() to always run this step to publish test results when there are test failures
8591
if: ${{ always() }}
8692

87-
- name: Test with dotnet (.NET Core 7.0)
88-
run: dotnet test -f net7.0 --logger trx --collect "Code Coverage" --results-directory "TestResults-net7-${{ matrix.dotnet-version }}" Framework\Ninject\Azure\Tests\Cqrs.Ninject.Azure.WebJobs.Tests.Integration\Cqrs.Ninject.Azure.WebJobs.Tests.Integration.csproj
93+
- name: Test with dotnet (.NET Core 8.0)
94+
run: dotnet test -f net8.0 --logger trx --collect "Code Coverage" --results-directory "TestResults-net7-${{ matrix.dotnet-version }}" Framework\Ninject\Azure\Tests\Cqrs.Ninject.Azure.WebJobs.Tests.Integration\Cqrs.Ninject.Azure.WebJobs.Tests.Integration.csproj
8995
- name: Upload dotnet test results
9096
uses: actions/upload-artifact@v4
9197
with:
@@ -94,8 +100,8 @@ jobs:
94100
# Use always() to always run this step to publish test results when there are test failures
95101
if: ${{ always() }}
96102

97-
- name: Test Dependency Resolver with dotnet (.NET Core 7.0)
98-
run: dotnet test -f net7.0 --logger trx --collect "Code Coverage" --results-directory "DependencyResolver-TestResults-net7-${{ matrix.dotnet-version }}" Framework\DependencyInjection\Tests\Cqrs.DependencyInjection.Tests.Unit\Cqrs.DependencyInjection.Tests.Unit.csproj
103+
- name: Test Dependency Resolver with dotnet (.NET Core 8.0)
104+
run: dotnet test -f net8.0 --logger trx --collect "Code Coverage" --results-directory "DependencyResolver-TestResults-net7-${{ matrix.dotnet-version }}" Framework\DependencyInjection\Tests\Cqrs.DependencyInjection.Tests.Unit\Cqrs.DependencyInjection.Tests.Unit.csproj
99105
- name: Upload dotnet test results
100106
uses: actions/upload-artifact@v4
101107
with:

.github/workflows/publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,15 @@ jobs:
1717
matrix:
1818
os: [windows-latest]
1919
# this is fixed to just one version so we only run the push operation once
20-
dotnet-version: [ '7.0.x' ]
20+
dotnet-version: [ '8.0.x' ]
2121
steps:
22+
- name: Install .NET Framework 4.0 Developer Pack
23+
run: |
24+
Invoke-WebRequest -Uri "https://download.microsoft.com/download/1/5/7/157F3F3E-3E3B-4F6E-9F3C-3D3E3F3E3F3E/NDP40-DevPack-KB2600211-x86-x64.exe" -OutFile "ndp40.exe"
25+
Start-Process -FilePath "ndp40.exe" -ArgumentList "/quiet" -Wait
26+
2227
- name: Checkout Code
23-
uses: actions/checkout@v1
28+
uses: actions/checkout@v4
2429

2530
- name: Setup dotnet CLI
2631
uses: actions/setup-dotnet@v3.2.0
@@ -30,6 +35,7 @@ jobs:
3035
5.0.x
3136
6.0.x
3237
7.0.x
38+
8.0.x
3339
3440
- name: Setup dependencies caching
3541
uses: actions/cache@v3

0 commit comments

Comments
 (0)