From 7c94c9f51b3ccd3208a4eeb2a43b847beeeae277 Mon Sep 17 00:00:00 2001 From: Pete Sramek Date: Mon, 16 Mar 2026 18:49:00 +0100 Subject: [PATCH 1/3] fix --- .github/actions/testing/test/action.yml | 15 ++++++++++----- .../PolylineAlgorithm.Tests.csproj | 15 +++++++++------ 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/.github/actions/testing/test/action.yml b/.github/actions/testing/test/action.yml index 52b875a2..6a91a4ad 100644 --- a/.github/actions/testing/test/action.yml +++ b/.github/actions/testing/test/action.yml @@ -1,4 +1,4 @@ -name: 'Test with .NET CLI' +name: 'Test with .NET CLI' author: 'Pete Sramek' description: 'Run tests, collects code coverage, logs test results, uploads test artifacts' inputs: @@ -13,6 +13,10 @@ inputs: description: 'Build configuration. Default: Release' required: false default: 'Release' + use-testing-platform: + description: 'Use Microsoft Testing Platform, Default: true' + required: false + default: 'true' project-path: description: 'Search pattern for test projects.' required: true @@ -50,7 +54,7 @@ runs: using: composite steps: - name: 'Checkout ${{ github.head_ref || github.ref }}' - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: 'Setup .NET ${{ inputs.dotnet_sdk_version }}' uses: actions/setup-dotnet@v4 @@ -82,10 +86,11 @@ runs: - name: 'Test with .NET CLI' shell: bash run: dotnet test ${{ inputs.test-project-glob-pattern }} --configuration ${{ inputs.build-configuration }} -- ${{ env.CODE_COVERAGE_ARGS }} ${{ env.TRX_LOGGER_ARGS }} --results-directory ${{ inputs.test-results-directory }} - + env: + DOTNET_TEST_USE_MICROSOFT_TESTING_PLATFORM: true - name: 'Upload test results' if: ${{ inputs.upload-test-artifacts == 'true' }} - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: '${{ inputs.test-artifacts-name }}' - path: '${{ inputs.test-results-directory }}*' \ No newline at end of file + path: '${{ inputs.test-results-directory }}*' diff --git a/tests/PolylineAlgorithm.Tests/PolylineAlgorithm.Tests.csproj b/tests/PolylineAlgorithm.Tests/PolylineAlgorithm.Tests.csproj index 47504afd..dfcfe0c1 100644 --- a/tests/PolylineAlgorithm.Tests/PolylineAlgorithm.Tests.csproj +++ b/tests/PolylineAlgorithm.Tests/PolylineAlgorithm.Tests.csproj @@ -16,6 +16,7 @@ true false None + true @@ -30,12 +31,14 @@ - - - - - - + + + + + + + + From 0cf7d6b2327715965e94a3baea3131b5b754da1f Mon Sep 17 00:00:00 2001 From: Pete Sramek Date: Mon, 16 Mar 2026 18:59:53 +0100 Subject: [PATCH 2/3] updated to NET 10 --- .github/actions/documentation/docfx-build/action.yml | 8 ++++---- .github/actions/documentation/docfx-metadata/action.yml | 7 +++---- .github/actions/git/push-changes/action.yml | 6 +++--- .github/actions/nuget/publish-package/action.yml | 6 +++--- .github/actions/source/compile/action.yml | 6 +++--- .github/actions/source/format/action.yml | 6 +++--- .github/actions/testing/code-coverage/action.yml | 8 ++++---- .github/actions/testing/test-report/action.yml | 8 ++++---- .github/actions/testing/test/action.yml | 4 ++-- .github/actions/versioning/extract-version/action.yml | 6 +++--- .github/actions/versioning/format-version/action.yml | 6 +++--- .github/workflows/build.yml | 4 ++-- .github/workflows/promote-branch.yml | 4 ++-- .github/workflows/pull-request.yml | 6 +++--- .github/workflows/release.yml | 4 ++-- .../PolylineAlgorithm.Benchmarks.csproj | 2 +- .../PolylineAlgorithm.Tests.csproj | 4 ++-- 17 files changed, 47 insertions(+), 48 deletions(-) diff --git a/.github/actions/documentation/docfx-build/action.yml b/.github/actions/documentation/docfx-build/action.yml index 4eddad17..2b9ba79f 100644 --- a/.github/actions/documentation/docfx-build/action.yml +++ b/.github/actions/documentation/docfx-build/action.yml @@ -1,4 +1,4 @@ -name: 'Generate docs with docfx' +name: 'Generate docs with docfx' author: 'Pete Sramek' description: 'Generate documentation using docfx' inputs: @@ -14,9 +14,9 @@ inputs: required: true # Optional dotnet_sdk_version: - description: '.NET SDK version. Default: 9.x' + description: '.NET SDK version. Default: 10.x' required: false - default: '9.x' + default: '10.x' runs: using: composite @@ -44,4 +44,4 @@ runs: uses: actions/upload-artifact@v4 with: name: ${{ inputs.artifact-name }} - path: ${{ inputs.output-directory }} \ No newline at end of file + path: ${{ inputs.output-directory }} diff --git a/.github/actions/documentation/docfx-metadata/action.yml b/.github/actions/documentation/docfx-metadata/action.yml index bf20df47..bcfb67d2 100644 --- a/.github/actions/documentation/docfx-metadata/action.yml +++ b/.github/actions/documentation/docfx-metadata/action.yml @@ -1,4 +1,4 @@ -name: 'Generate metadata with docfx' +name: 'Generate metadata with docfx' author: 'Pete Sramek' description: 'Generate metadata using docfx' @@ -18,9 +18,9 @@ inputs: required: true # Optional dotnet_sdk_version: - description: '.NET SDK version. Default: 9.x' + description: '.NET SDK version. Default: 10.x' required: false - default: '9.x' + default: '10.x' runs: using: composite @@ -63,4 +63,3 @@ runs: with: name: ${{ inputs.artifact-name }} path: ${{ inputs.output-directory }} - \ No newline at end of file diff --git a/.github/actions/git/push-changes/action.yml b/.github/actions/git/push-changes/action.yml index da323b21..a5799d2a 100644 --- a/.github/actions/git/push-changes/action.yml +++ b/.github/actions/git/push-changes/action.yml @@ -1,4 +1,4 @@ -name: 'Push Changes' +name: 'Push Changes' author: 'Pete Sramek' description: 'Push changes to a specified branch in the repository.' inputs: @@ -8,9 +8,9 @@ inputs: required: true # Optional dotnet_sdk_version: - description: '.NET SDK version. Default: 9.x' + description: '.NET SDK version. Default: 10.x' required: false - default: '9.x' + default: '10.x' artifact-name: description: 'Name of the artifact to download before pushing changes. Default: ''''' required: false diff --git a/.github/actions/nuget/publish-package/action.yml b/.github/actions/nuget/publish-package/action.yml index 83d00687..64b4885a 100644 --- a/.github/actions/nuget/publish-package/action.yml +++ b/.github/actions/nuget/publish-package/action.yml @@ -1,4 +1,4 @@ -name: 'Publish packages to NuGet feed' +name: 'Publish packages to NuGet feed' author: 'Pete Sramek' description: 'Publishes packages in working directory to public NuGet feed' inputs: @@ -17,9 +17,9 @@ inputs: required: true # Optional dotnet-sdk-version: - description: '.NET SDK version. Default: 9.x' + description: '.NET SDK version. Default: 10.x' required: false - default: '9.x' + default: '10.x' working-directory: description: 'Working directory to search for file.' required: false diff --git a/.github/actions/source/compile/action.yml b/.github/actions/source/compile/action.yml index 7e6eea46..2a59e696 100644 --- a/.github/actions/source/compile/action.yml +++ b/.github/actions/source/compile/action.yml @@ -1,4 +1,4 @@ -name: 'Compile source code' +name: 'Compile source code' author: 'Pete Sramek' description: 'Compiles source code, uploads build artifacts.' inputs: @@ -20,9 +20,9 @@ inputs: required: true # Optional dotnet_sdk_version: - description: '.NET SDK version. Default: ''9.x''' + description: '.NET SDK version. Default: ''10.x''' required: false - default: '9.x' + default: '10.x' build-configuration: description: 'Build configuration. Default: ''Release''' required: false diff --git a/.github/actions/source/format/action.yml b/.github/actions/source/format/action.yml index f932a166..5ce79d8f 100644 --- a/.github/actions/source/format/action.yml +++ b/.github/actions/source/format/action.yml @@ -1,4 +1,4 @@ -name: 'Format source code' +name: 'Format source code' author: 'Pete Sramek' description: 'Formats source code using dotnet format tool. Pushes changes to the current branch.' inputs: @@ -8,9 +8,9 @@ inputs: required: true # Optional dotnet_sdk_version: - description: '.NET SDK version. Default: ''9.x''' + description: '.NET SDK version. Default: ''10.x''' required: false - default: '9.x' + default: '10.x' format-whitespace: description: 'Format whitespace. Default: ''true''' required: false diff --git a/.github/actions/testing/code-coverage/action.yml b/.github/actions/testing/code-coverage/action.yml index 45d257f5..1e42d2ca 100644 --- a/.github/actions/testing/code-coverage/action.yml +++ b/.github/actions/testing/code-coverage/action.yml @@ -1,4 +1,4 @@ -name: 'Test with .NET CLI' +name: 'Test with .NET CLI' author: 'Pete Sramek' description: 'Run tests, collects code coverage, logs test results, uploads test artifacts' inputs: @@ -8,9 +8,9 @@ inputs: required: true # Optional dotnet_sdk_version: - description: '.NET SDK version. Default: 9.x' + description: '.NET SDK version. Default: 10.x' required: false - default: '9.x' + default: '10.x' outputs: code-coverage-report-file: @@ -70,4 +70,4 @@ runs: - name: 'Generate code coverage report' shell: bash - run: reportgenerator -reports:${{ env.CODE_COVERAGE_MERGED_FILE }} -targetdir:${{ env.CODE_COVERAGE_REPORT_FOLDER }} -reporttypes:"MarkdownSummary" \ No newline at end of file + run: reportgenerator -reports:${{ env.CODE_COVERAGE_MERGED_FILE }} -targetdir:${{ env.CODE_COVERAGE_REPORT_FOLDER }} -reporttypes:"MarkdownSummary" diff --git a/.github/actions/testing/test-report/action.yml b/.github/actions/testing/test-report/action.yml index aee61285..6dc55d81 100644 --- a/.github/actions/testing/test-report/action.yml +++ b/.github/actions/testing/test-report/action.yml @@ -1,4 +1,4 @@ -name: 'Generate test report with Liquid Test Reports CLI' +name: 'Generate test report with Liquid Test Reports CLI' author: 'Pete Sramek' description: 'Run tests, collects code coverage, logs test results, uploads test artifacts' inputs: @@ -8,9 +8,9 @@ inputs: required: true # Optional dotnet_sdk_version: - description: '.NET SDK version. Default: 9.x' + description: '.NET SDK version. Default: 10.x' required: false - default: '9.x' + default: '10.x' test-report-filename: description: 'Filename of the test report. Default: test-report.md' required: false @@ -57,4 +57,4 @@ runs: - name: Generate test report shell: bash - run: liquid --inputs "Folder=${{ env.TEST_RESULT_FOLDER }};File=**/*.trx;Format=Trx" --output-file ${{ env.TEST_REPORT_FILE }} \ No newline at end of file + run: liquid --inputs "Folder=${{ env.TEST_RESULT_FOLDER }};File=**/*.trx;Format=Trx" --output-file ${{ env.TEST_REPORT_FILE }} diff --git a/.github/actions/testing/test/action.yml b/.github/actions/testing/test/action.yml index 6a91a4ad..d572d5eb 100644 --- a/.github/actions/testing/test/action.yml +++ b/.github/actions/testing/test/action.yml @@ -6,9 +6,9 @@ inputs: # Optional dotnet_sdk_version: - description: '.NET SDK version. Default: 9.x' + description: '.NET SDK version. Default: 10.x' required: false - default: '9.x' + default: '10.x' build-configuration: description: 'Build configuration. Default: Release' required: false diff --git a/.github/actions/versioning/extract-version/action.yml b/.github/actions/versioning/extract-version/action.yml index 43ad87a9..faad6a35 100644 --- a/.github/actions/versioning/extract-version/action.yml +++ b/.github/actions/versioning/extract-version/action.yml @@ -1,4 +1,4 @@ -name: 'Extract version' +name: 'Extract version' author: 'Pete Sramek' description: 'Determines versions for the build.' inputs: @@ -16,9 +16,9 @@ inputs: required: false default: '(\d+).(\d+)' dotnet_sdk_version: - description: '.NET SDK version. Default: ''9.x''' + description: '.NET SDK version. Default: ''10.x''' required: false - default: '9.x' + default: '10.x' outputs: version: description: 'Version extracted from the branch name.' diff --git a/.github/actions/versioning/format-version/action.yml b/.github/actions/versioning/format-version/action.yml index 035410fa..2b3d11c0 100644 --- a/.github/actions/versioning/format-version/action.yml +++ b/.github/actions/versioning/format-version/action.yml @@ -1,4 +1,4 @@ -name: 'Format version' +name: 'Format version' author: 'Pete Sramek' description: 'Formats versions.' inputs: @@ -20,9 +20,9 @@ inputs: required: true # Optional dotnet_sdk_version: - description: '.NET SDK version. Default: ''9.x''' + description: '.NET SDK version. Default: ''10.x''' required: false - default: '9.x' + default: '10.x' outputs: friendly-version: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 082c11e9..d9e53b50 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build +name: Build on: workflow_dispatch: @@ -20,7 +20,7 @@ concurrency: cancel-in-progress: false env: - dotnet-sdk-version: '9.x' + dotnet-sdk-version: '10.x' build-configuration: 'Release' build-platform: 'Any CPU' git-version: '6.0.x' diff --git a/.github/workflows/promote-branch.yml b/.github/workflows/promote-branch.yml index 43e9cdab..21d999f1 100644 --- a/.github/workflows/promote-branch.yml +++ b/.github/workflows/promote-branch.yml @@ -1,4 +1,4 @@ -name: 'Promote branch' +name: 'Promote branch' on: workflow_dispatch: @@ -27,7 +27,7 @@ concurrency: cancel-in-progress: false env: - dotnet-sdk-version: '9.x' + dotnet-sdk-version: '10.x' is-development-branch: ${{ startsWith(github.ref_name, 'develop') }} is-maintenance-branch: ${{ startsWith(github.ref_name, 'support') }} diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 573c5891..85c21862 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -1,4 +1,4 @@ -name: 'Pull Request' +name: 'Pull Request' on: pull_request: @@ -21,7 +21,7 @@ concurrency: cancel-in-progress: true env: - dotnet-sdk-version: '9.x' + dotnet-sdk-version: '10.x' build-configuration: 'Release' build-platform: 'Any CPU' git-version: '6.0.x' @@ -238,7 +238,7 @@ jobs: with: dotnet-version: | 8.x - 9.x + 10.x - name: Download Build uses: actions/download-artifact@v5 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index def80aa1..6d3066a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: 'Release' +name: 'Release' on: push: @@ -19,7 +19,7 @@ concurrency: cancel-in-progress: false env: - dotnet-sdk-version: '9.x' + dotnet-sdk-version: '10.x' build-configuration: 'Release' build-platform: 'Any CPU' git-version: '6.0.x' diff --git a/benchmarks/PolylineAlgorithm.Benchmarks/PolylineAlgorithm.Benchmarks.csproj b/benchmarks/PolylineAlgorithm.Benchmarks/PolylineAlgorithm.Benchmarks.csproj index 338efcf0..2859331b 100644 --- a/benchmarks/PolylineAlgorithm.Benchmarks/PolylineAlgorithm.Benchmarks.csproj +++ b/benchmarks/PolylineAlgorithm.Benchmarks/PolylineAlgorithm.Benchmarks.csproj @@ -2,7 +2,7 @@ Exe - net8.0;net9.0 + net8.0;net9.0;net10.0; 13.0 enable enable diff --git a/tests/PolylineAlgorithm.Tests/PolylineAlgorithm.Tests.csproj b/tests/PolylineAlgorithm.Tests/PolylineAlgorithm.Tests.csproj index dfcfe0c1..d3e88b6f 100644 --- a/tests/PolylineAlgorithm.Tests/PolylineAlgorithm.Tests.csproj +++ b/tests/PolylineAlgorithm.Tests/PolylineAlgorithm.Tests.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 13.0 enable enable @@ -46,4 +46,4 @@ - \ No newline at end of file + From ee952bd8331e66360d5e9d4ae08573658ae7160d Mon Sep 17 00:00:00 2001 From: Pete Sramek Date: Mon, 16 Mar 2026 19:03:31 +0100 Subject: [PATCH 3/3] fix for tests --- tests/PolylineAlgorithm.Tests/PolylineAlgorithm.Tests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/PolylineAlgorithm.Tests/PolylineAlgorithm.Tests.csproj b/tests/PolylineAlgorithm.Tests/PolylineAlgorithm.Tests.csproj index d3e88b6f..de44e70c 100644 --- a/tests/PolylineAlgorithm.Tests/PolylineAlgorithm.Tests.csproj +++ b/tests/PolylineAlgorithm.Tests/PolylineAlgorithm.Tests.csproj @@ -17,6 +17,7 @@ false None true + true @@ -32,7 +33,6 @@ -