diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 79d1a01..04829af 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -6,15 +6,25 @@ jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + include: + - framework: net10.0 + dotnet-version: 10.0.x + - framework: net11.0 + dotnet-version: 11.0.x + dotnet-quality: preview + steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v7 - name: Setup .NET - uses: actions/setup-dotnet@v5 + uses: actions/setup-dotnet@v6 with: - dotnet-version: 10.0.x + dotnet-version: ${{ matrix.dotnet-version }} + dotnet-quality: ${{ matrix.dotnet-quality }} - name: Restore dependencies - run: dotnet restore source + run: dotnet restore source -p:TargetFrameworks=${{ matrix.framework }} - name: Build - run: dotnet build --no-restore source + run: dotnet build --no-restore source -p:TargetFrameworks=${{ matrix.framework }} - name: Test - run: dotnet test --no-build --verbosity normal source + run: dotnet test --no-build --verbosity normal source -p:TargetFrameworks=${{ matrix.framework }} diff --git a/.github/workflows/PreRelease.yml b/.github/workflows/PreRelease.yml index 67dacf5..9515377 100644 --- a/.github/workflows/PreRelease.yml +++ b/.github/workflows/PreRelease.yml @@ -8,21 +8,26 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v7 with: fetch-depth: 0 - - name: Setup .NET - uses: actions/setup-dotnet@v5 + - name: Setup .NET 10 + uses: actions/setup-dotnet@v6 with: dotnet-version: 10.0.x + - name: Setup .NET 11 (preview) + uses: actions/setup-dotnet@v6 + with: + dotnet-version: 11.0.x + dotnet-quality: 'preview' - run: echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v4.2.0 + uses: gittools/actions/gitversion/setup@v4.7.0 with: versionSpec: "6.x" - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v4.2.0 + uses: gittools/actions/gitversion/execute@v4.7.0 with: useConfigFile: true - name: Pack diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index b51bfae..f376f0f 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -8,21 +8,26 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v7 with: fetch-depth: 0 - - name: Setup .NET - uses: actions/setup-dotnet@v5 + - name: Setup .NET 10 + uses: actions/setup-dotnet@v6 with: dotnet-version: 10.0.x + - name: Setup .NET 11 (preview) + uses: actions/setup-dotnet@v6 + with: + dotnet-version: 11.0.x + dotnet-quality: 'preview' - run: echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV - name: Install GitVersion - uses: gittools/actions/gitversion/setup@v4.2.0 + uses: gittools/actions/gitversion/setup@v4.7.0 with: versionSpec: "6.x" - name: Determine Version id: gitversion - uses: gittools/actions/gitversion/execute@v4.2.0 + uses: gittools/actions/gitversion/execute@v4.7.0 with: useConfigFile: true - name: Pack diff --git a/global.json b/global.json new file mode 100644 index 0000000..67b0c9d --- /dev/null +++ b/global.json @@ -0,0 +1,10 @@ +{ + "sdk": { + "version": "10.0.100", + "rollForward": "latestMajor", + "allowPrerelease": true + }, + "test": { + "runner": "Microsoft.Testing.Platform" + } +} diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..66d74f1 --- /dev/null +++ b/renovate.json @@ -0,0 +1,32 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended", + ":semanticCommitsDisabled" + ], + "timezone": "Europe/Oslo", + "schedule": [ + "before 6am on monday" + ], + "labels": [ + "dependencies" + ], + "packageRules": [ + { + "matchManagers": ["nuget"], + "groupName": "NuGet dependencies", + "minimumReleaseAge": "3 days" + }, + { + "matchManagers": ["github-actions"], + "groupName": "GitHub Actions", + "minimumReleaseAge": "3 days" + }, + { + "matchManagers": ["github-actions"], + "matchPackageNames": ["actions/checkout", "actions/setup-dotnet"], + "automerge": true, + "automergeType": "branch" + } + ] +} diff --git a/source/NoCommons.Tests/NoCommons.Tests.csproj b/source/NoCommons.Tests/NoCommons.Tests.csproj index ce9f24f..09e0043 100644 --- a/source/NoCommons.Tests/NoCommons.Tests.csproj +++ b/source/NoCommons.Tests/NoCommons.Tests.csproj @@ -1,12 +1,11 @@  - net8.0;net9.0;net10.0 + net10.0;net11.0 enable enable true Exe - true @@ -14,9 +13,9 @@ - - - + + + all runtime; build; native; contentfiles; analyzers diff --git a/source/NoCommons/NoCommons.csproj b/source/NoCommons/NoCommons.csproj index d06c8e4..ba83dee 100644 --- a/source/NoCommons/NoCommons.csproj +++ b/source/NoCommons/NoCommons.csproj @@ -1,6 +1,6 @@  - net8.0;net9.0;net10.0 + net10.0;net11.0 enable enable NoCommons