diff --git a/.editorconfig b/.editorconfig index 9c75956..098f014 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,4 +1,4 @@ -[*] +[*] indent_style = space indent_size = 2 charset = utf-8 @@ -8,6 +8,9 @@ insert_final_newline = true [*.cs] indent_size = 4 +[*.md] +trim_trailing_whitespace = false + [*.cs] # IDE0022: Use block body for method diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8fc97f8..43234a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,12 +22,10 @@ jobs: DOTNET_CLI_TELEMETRY_OPTOUT: 1 steps: - - name: Checkout source code - uses: actions/checkout@v4 - + - uses: actions/checkout@v4 - uses: actions/setup-dotnet@v4 with: - dotnet-version: '9.0.x' + global-json-file: global.json - name: Test run: dotnet test --configuration Release diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5a6f2cd..f0ec025 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,12 +14,10 @@ jobs: DOTNET_CLI_TELEMETRY_OPTOUT: 1 steps: - - name: Checkout source code - uses: actions/checkout@v4 - + - uses: actions/checkout@v4 - uses: actions/setup-dotnet@v4 with: - dotnet-version: '9.0.x' + global-json-file: global.json - name: Test run: dotnet test --configuration Release diff --git a/Directory.Packages.props b/Directory.Packages.props index b6d606e..5d641a2 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -1,4 +1,4 @@ - + true diff --git a/global.json b/global.json new file mode 100644 index 0000000..f657889 --- /dev/null +++ b/global.json @@ -0,0 +1,6 @@ +{ + "sdk": { + "version": "9.0.100", + "rollForward": "latestMajor" + } +} diff --git a/test/Parlot.Benchmarks/Parlot.Benchmarks.csproj b/test/Parlot.Benchmarks/Parlot.Benchmarks.csproj index f5c5765..8cc0417 100644 --- a/test/Parlot.Benchmarks/Parlot.Benchmarks.csproj +++ b/test/Parlot.Benchmarks/Parlot.Benchmarks.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net9.0 false latest-Default False diff --git a/test/Parlot.Tests/BenchmarksTests.cs b/test/Parlot.Tests/BenchmarksTests.cs index 497bc41..5c0f27d 100644 --- a/test/Parlot.Tests/BenchmarksTests.cs +++ b/test/Parlot.Tests/BenchmarksTests.cs @@ -1,4 +1,4 @@ -#if NET8_0_OR_GREATER +#if NET9_0_OR_GREATER using Parlot.Benchmarks; using Xunit; diff --git a/test/Parlot.Tests/Parlot.Tests.csproj b/test/Parlot.Tests/Parlot.Tests.csproj index ceaf62c..201f189 100644 --- a/test/Parlot.Tests/Parlot.Tests.csproj +++ b/test/Parlot.Tests/Parlot.Tests.csproj @@ -12,7 +12,7 @@ - +