Skip to content

Commit

Permalink
update to net8.0-rc1 (#2044)
Browse files Browse the repository at this point in the history
* update one project to net8.0

* update all System.* and Microsoft.Extensions* dependencies to 8.0

* ConfigureHttpMessageHandlerBuilder has been obsoleted, use ConfigureAdditionalHttpMessageHandlers

* use full target framework moniker names

* add net8.0 to all test projects, move the setting to one file so it's easier to change in the future

* add net8.0 to all projects that required it to fix the build, replace net5.0 (out of support) with net6.0 (oldest supported)

* update all healthchecks_*_cd.yml files: use reusable worklflow that targets net8.0

* update all healthchecks_*_cd_preview.yml files: use reusable worklflow that targets net8.0

* update all healthchecks_*_ci.yml files: use reusable worklflow that targets net8.0

* manually update two complex ci files that would not benefit from reusable worklfow

* remove whitespace from the end of the file name and update it too

* update all versions to 8.0

* generate strong name key and sign the assemblies

* disable warning produced by Microsoft.Azure.DocumentDB.Core

NO WARNING!
  • Loading branch information
adamsitnik committed Nov 23, 2023
1 parent 2824b09 commit ba0bf77
Show file tree
Hide file tree
Showing 282 changed files with 951 additions and 3,199 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/healthchecks_applicationstatus_cd.yml
Expand Up @@ -8,22 +8,9 @@ on:

jobs:
build:
env:
uses: ./.github/workflows/reusable_cd_workflow.yml
secrets: inherit
with:
BUILD_CONFIG: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: Restore
run: dotnet restore ./src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj
- name: Build
run: dotnet build --no-restore ./src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj -c $BUILD_CONFIG
- name: Pack
run: dotnet pack --no-build ./src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj -c $BUILD_CONFIG -o ./artifacts
- name: Publish
run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.ApplicationStatus.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
PROJECT_PATH: ./src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj
PACKAGE_NAME: AspNetCore.HealthChecks.ApplicationStatus
25 changes: 6 additions & 19 deletions .github/workflows/healthchecks_applicationstatus_cd_preview.yml
Expand Up @@ -8,23 +8,10 @@ on:

jobs:
build:
env:
uses: ./.github/workflows/reusable_cd_preview_workflow.yml
secrets: inherit
with:
BUILD_CONFIG: Release
VERSION_SUFFIX: rc2.${{ github.run_number }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: Restore
run: dotnet restore ./src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj
- name: Build
run: dotnet build --no-restore ./src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj -c $BUILD_CONFIG
- name: Pack
run: dotnet pack --no-build ./src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts
- name: Publish
run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.ApplicationStatus.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
VERSION_SUFFIX_PREFIX: rc1
PROJECT_PATH: ./src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj
PACKAGE_NAME: AspNetCore.HealthChecks.ApplicationStatus
43 changes: 7 additions & 36 deletions .github/workflows/healthchecks_applicationstatus_ci.yml
Expand Up @@ -9,6 +9,7 @@ on:
- test/HealthChecks.ApplicationStatus.Tests/**
- test/_SHARED/**
- .github/workflows/healthchecks_applicationstatus_ci.yml
- .github/workflows/reusable_ci_workflow.yml
- Directory.Build.props
- Directory.Build.targets
tags-ignore:
Expand All @@ -22,44 +23,14 @@ on:
- test/HealthChecks.ApplicationStatus.Tests/**
- test/_SHARED/**
- .github/workflows/healthchecks_applicationstatus_ci.yml
- .github/workflows/reusable_ci_workflow.yml
- Directory.Build.props
- Directory.Build.targets

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: Restore
run: |
dotnet restore ./src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj &&
dotnet restore ./test/HealthChecks.ApplicationStatus.Tests/HealthChecks.ApplicationStatus.Tests.csproj
- name: Check formatting
run: |
dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) &&
dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.ApplicationStatus.Tests/HealthChecks.ApplicationStatus.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1)
- name: Build
run: |
dotnet build --no-restore ./src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj &&
dotnet build --no-restore ./test/HealthChecks.ApplicationStatus.Tests/HealthChecks.ApplicationStatus.Tests.csproj
- name: Test
run: >
dotnet test
./test/HealthChecks.ApplicationStatus.Tests/HealthChecks.ApplicationStatus.Tests.csproj
--no-restore
--no-build
--collect "XPlat Code Coverage"
--results-directory .coverage
--
DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
- name: Upload Coverage
uses: codecov/codecov-action@v3
with:
flags: ApplicationStatus
directory: .coverage
uses: ./.github/workflows/reusable_ci_workflow.yml
with:
PROJECT_PATH: ./src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj
TEST_PROJECT_PATH: ./test/HealthChecks.ApplicationStatus.Tests/HealthChecks.ApplicationStatus.Tests.csproj
CODECOV_FLAGS: ApplicationStatus
23 changes: 5 additions & 18 deletions .github/workflows/healthchecks_arangodb_cd.yml
Expand Up @@ -8,22 +8,9 @@ on:

jobs:
build:
env:
uses: ./.github/workflows/reusable_cd_workflow.yml
secrets: inherit
with:
BUILD_CONFIG: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: Restore
run: dotnet restore ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj
- name: Build
run: dotnet build --no-restore ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj -c $BUILD_CONFIG
- name: Pack
run: dotnet pack --no-build ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj -c $BUILD_CONFIG -o ./artifacts
- name: Publish
run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.ArangoDb.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
PROJECT_PATH: ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj
PACKAGE_NAME: AspNetCore.HealthChecks.ArangoDb
25 changes: 6 additions & 19 deletions .github/workflows/healthchecks_arangodb_cd_preview.yml
Expand Up @@ -8,23 +8,10 @@ on:

jobs:
build:
env:
uses: ./.github/workflows/reusable_cd_preview_workflow.yml
secrets: inherit
with:
BUILD_CONFIG: Release
VERSION_SUFFIX: rc2.${{ github.run_number }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: Restore
run: dotnet restore ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj
- name: Build
run: dotnet build --no-restore ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj -c $BUILD_CONFIG
- name: Pack
run: dotnet pack --no-build ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts
- name: Publish
run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.ArangoDb.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
VERSION_SUFFIX_PREFIX: rc1
PROJECT_PATH: ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj
PACKAGE_NAME: AspNetCore.HealthChecks.ArangoDb
1 change: 1 addition & 0 deletions .github/workflows/healthchecks_arangodb_ci.yml
Expand Up @@ -43,6 +43,7 @@ jobs:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Restore
run: |
dotnet restore ./src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj &&
Expand Down
23 changes: 5 additions & 18 deletions .github/workflows/healthchecks_aws_s3_cd.yml
Expand Up @@ -8,22 +8,9 @@ on:

jobs:
build:
env:
uses: ./.github/workflows/reusable_cd_workflow.yml
secrets: inherit
with:
BUILD_CONFIG: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: Restore
run: dotnet restore ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj
- name: Build
run: dotnet build --no-restore ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj -c $BUILD_CONFIG
- name: Pack
run: dotnet pack --no-build ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj -c $BUILD_CONFIG -o ./artifacts
- name: Publish
run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Aws.S3.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
PROJECT_PATH: ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj
PACKAGE_NAME: AspNetCore.HealthChecks.Aws.S3
25 changes: 6 additions & 19 deletions .github/workflows/healthchecks_aws_s3_cd_preview.yml
Expand Up @@ -8,23 +8,10 @@ on:

jobs:
build:
env:
uses: ./.github/workflows/reusable_cd_preview_workflow.yml
secrets: inherit
with:
BUILD_CONFIG: Release
VERSION_SUFFIX: rc2.${{ github.run_number }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: Restore
run: dotnet restore ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj
- name: Build
run: dotnet build --no-restore ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj -c $BUILD_CONFIG
- name: Pack
run: dotnet pack --no-build ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts
- name: Publish
run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Aws.S3.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
VERSION_SUFFIX_PREFIX: rc1
PROJECT_PATH: ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj
PACKAGE_NAME: AspNetCore.HealthChecks.Aws.S3
43 changes: 7 additions & 36 deletions .github/workflows/healthchecks_aws_s3_ci.yml
Expand Up @@ -9,6 +9,7 @@ on:
- test/HealthChecks.Aws.S3.Tests/**
- test/_SHARED/**
- .github/workflows/healthchecks_aws_s3_ci.yml
- .github/workflows/reusable_ci_workflow.yml
- Directory.Build.props
- Directory.Build.targets
tags-ignore:
Expand All @@ -22,44 +23,14 @@ on:
- test/HealthChecks.Aws.S3.Tests/**
- test/_SHARED/**
- .github/workflows/healthchecks_aws_s3_ci.yml
- .github/workflows/reusable_ci_workflow.yml
- Directory.Build.props
- Directory.Build.targets

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: Restore
run: |
dotnet restore ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj &&
dotnet restore ./test/HealthChecks.Aws.S3.Tests/HealthChecks.Aws.S3.Tests.csproj
- name: Check formatting
run: |
dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) &&
dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.Aws.S3.Tests/HealthChecks.Aws.S3.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1)
- name: Build
run: |
dotnet build --no-restore ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj &&
dotnet build --no-restore ./test/HealthChecks.Aws.S3.Tests/HealthChecks.Aws.S3.Tests.csproj
- name: Test
run: >
dotnet test
./test/HealthChecks.Aws.S3.Tests/HealthChecks.Aws.S3.Tests.csproj
--no-restore
--no-build
--collect "XPlat Code Coverage"
--results-directory .coverage
--
DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
- name: Upload Coverage
uses: codecov/codecov-action@v3
with:
flags: Aws.S3
directory: .coverage
uses: ./.github/workflows/reusable_ci_workflow.yml
with:
PROJECT_PATH: ./src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj
TEST_PROJECT_PATH: ./test/HealthChecks.Aws.S3.Tests/HealthChecks.Aws.S3.Tests.csproj
CODECOV_FLAGS: Aws.S3
23 changes: 5 additions & 18 deletions .github/workflows/healthchecks_aws_secretsmanager_cd.yml
Expand Up @@ -8,22 +8,9 @@ on:

jobs:
build:
env:
uses: ./.github/workflows/reusable_cd_workflow.yml
secrets: inherit
with:
BUILD_CONFIG: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: Restore
run: dotnet restore ./src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj
- name: Build
run: dotnet build --no-restore ./src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj -c $BUILD_CONFIG
- name: Pack
run: dotnet pack --no-build ./src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj -c $BUILD_CONFIG -o ./artifacts
- name: Publish
run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Aws.SecretsManager.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
PROJECT_PATH: ./src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj
PACKAGE_NAME: AspNetCore.HealthChecks.Aws.SecretsManager
25 changes: 6 additions & 19 deletions .github/workflows/healthchecks_aws_secretsmanager_cd_preview.yml
Expand Up @@ -8,23 +8,10 @@ on:

jobs:
build:
env:
uses: ./.github/workflows/reusable_cd_preview_workflow.yml
secrets: inherit
with:
BUILD_CONFIG: Release
VERSION_SUFFIX: rc2.${{ github.run_number }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: Restore
run: dotnet restore ./src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj
- name: Build
run: dotnet build --no-restore ./src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj -c $BUILD_CONFIG
- name: Pack
run: dotnet pack --no-build ./src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj --version-suffix $VERSION_SUFFIX -c $BUILD_CONFIG -o ./artifacts
- name: Publish
run: dotnet nuget push ./artifacts/AspNetCore.HealthChecks.Aws.SecretsManager.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
VERSION_SUFFIX_PREFIX: rc1
PROJECT_PATH: ./src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj
PACKAGE_NAME: AspNetCore.HealthChecks.Aws.SecretsManager

0 comments on commit ba0bf77

Please sign in to comment.