Skip to content

Commit 376966d

Browse files
committed
feat: update to .net 9
1 parent d5c4755 commit 376966d

21 files changed

+31
-615
lines changed

.github/workflows/Build_and_Test.yml

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,10 @@
1-
# ------------------------------------------------------------------------------
2-
# <auto-generated>
3-
#
4-
# This code was generated.
5-
#
6-
# - To turn off auto-generation set:
7-
#
8-
# [GitHubActions (AutoGenerate = false)]
9-
#
10-
# - To trigger manual generation invoke:
11-
#
12-
# nuke --generate-configuration GitHubActions_Build_and_Test --host GitHubActions
13-
#
14-
# </auto-generated>
15-
# ------------------------------------------------------------------------------
16-
171
name: Build_and_Test
182

193
on:
204
push:
215
branches:
226
- main
7+
- feat/dotnet9
238
pull_request:
249
branches:
2510
- main
@@ -31,25 +16,22 @@ jobs:
3116
- uses: actions/checkout@v4
3217
with:
3318
fetch-depth: 0
34-
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
35-
uses: actions/cache@v3
36-
with:
37-
path: |
38-
.nuke/temp
39-
~/.nuget/packages
40-
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
4119
- name: Setup dotnet
4220
uses: actions/setup-dotnet@v4
4321
with:
44-
dotnet-version: '8.0.x'
45-
- name: 'Run: Test'
46-
run: ./build.cmd Test
47-
- name: 'Publish: test-results'
22+
dotnet-version: '9.0.x'
23+
- name: Install dependencies
24+
run: dotnet restore
25+
- name: Build
26+
run: dotnet build
27+
- name: Test with the dotnet CLI
28+
run: dotnet test --logger "junit;LogFileName=coverage.trx" --no-restore --results-directory "output/test-results" /property:CollectCoverage=True /property:CoverletOutputFormat=opencover /property:CoverletOutput=/output/test-results/coverage.cobertura.xml --collect:"XPlat Code Coverage"
29+
- name: Save artifacts from tests
4830
uses: actions/upload-artifact@v3
4931
with:
5032
name: test-results
5133
path: output/test-results
52-
- name: Upload Coverage
34+
- name: Upload Coverage to codecov
5335
uses: codecov/codecov-action@v3
5436
with:
5537
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/Publish.yml

Lines changed: 12 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,29 @@
1-
# ------------------------------------------------------------------------------
2-
# <auto-generated>
3-
#
4-
# This code was generated.
5-
#
6-
# - To turn off auto-generation set:
7-
#
8-
# [GitHubActions (AutoGenerate = false)]
9-
#
10-
# - To trigger manual generation invoke:
11-
#
12-
# nuke --generate-configuration GitHubActions_Publish --host GitHubActions
13-
#
14-
# </auto-generated>
15-
# ------------------------------------------------------------------------------
16-
171
name: Publish
182

193
on:
204
push:
215
tags:
22-
- 'v*'
6+
- '*'
237

248
jobs:
259
ubuntu-latest:
26-
name: ubuntu-latest
10+
name: Publish nuget
2711
runs-on: ubuntu-latest
2812
steps:
2913
- uses: actions/checkout@v4
3014
with:
3115
fetch-depth: 0
32-
- name: 'Cache: .nuke/temp, ~/.nuget/packages'
33-
uses: actions/cache@v3
34-
with:
35-
path: |
36-
.nuke/temp
37-
~/.nuget/packages
38-
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
3916
- name: Setup dotnet
4017
uses: actions/setup-dotnet@v4
4118
with:
42-
dotnet-version: '8.0.x'
43-
- name: 'Run: Push'
44-
run: ./build.cmd Push
19+
dotnet-version: '9.0.x'
20+
- name: Install dependencies
21+
run: dotnet restore
22+
- name: Build
23+
run: dotnet build --configuration Release --no-restore
24+
- name: Pack
25+
run: dotnet pack --configuration Release --no-build --output output /property:Version="${{ github.ref_name }}"
26+
- name: Push
27+
run: dotnet nuget push output/*.nupkg --source https://api.nuget.org/v3/index.json --api-key $NUGET_AUTH_TOKEN --skip-duplicate
4528
env:
46-
NugetApiKey: ${{ secrets.NUGET_API_KEY }}
47-
- name: 'Publish: packages'
48-
uses: actions/upload-artifact@v3
49-
with:
50-
name: packages
51-
path: output/packages
29+
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}

.nuke/build.schema.json

Lines changed: 0 additions & 126 deletions
This file was deleted.

.nuke/parameters.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

Serilog.Enrichers.AzureClaims.sln

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,12 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serilog.Enrichers.AzureClai
1616
EndProject
1717
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serilog.Enrichers.AzureClaims.Tests", "tests\Serilog.Enrichers.AzureClaims.Tests\Serilog.Enrichers.AzureClaims.Tests.csproj", "{EAECB584-06F0-47BD-8A95-479C7E51ACF2}"
1818
EndProject
19-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "_build", "build\_build.csproj", "{7BD92553-AD6B-438D-AEB7-2299509CC953}"
20-
EndProject
2119
Global
2220
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2321
Debug|Any CPU = Debug|Any CPU
2422
Release|Any CPU = Release|Any CPU
2523
EndGlobalSection
2624
GlobalSection(ProjectConfigurationPlatforms) = postSolution
27-
{7BD92553-AD6B-438D-AEB7-2299509CC953}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
28-
{7BD92553-AD6B-438D-AEB7-2299509CC953}.Release|Any CPU.ActiveCfg = Release|Any CPU
2925
{3FFC6CC2-072F-4E1A-8941-13030DC2049A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
3026
{3FFC6CC2-072F-4E1A-8941-13030DC2049A}.Debug|Any CPU.Build.0 = Debug|Any CPU
3127
{3FFC6CC2-072F-4E1A-8941-13030DC2049A}.Release|Any CPU.ActiveCfg = Release|Any CPU

build.cmd

Lines changed: 0 additions & 7 deletions
This file was deleted.

build.ps1

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)