Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
15 changes: 10 additions & 5 deletions .github/workflows/PreRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"sdk": {
"version": "10.0.100",
"rollForward": "latestMajor",
"allowPrerelease": true
},
"test": {
"runner": "Microsoft.Testing.Platform"
}
}
32 changes: 32 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
9 changes: 4 additions & 5 deletions source/NoCommons.Tests/NoCommons.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
<TargetFrameworks>net10.0;net11.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
<OutputType>Exe</OutputType>
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\NoCommons\NoCommons.csproj"/>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0"/>
<PackageReference Include="xunit.v3" Version="1.1.0"/>
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.2">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.10.0"/>
<PackageReference Include="xunit.v3" Version="4.0.0"/>
<PackageReference Include="xunit.runner.visualstudio" Version="4.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion source/NoCommons/NoCommons.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
<TargetFrameworks>net10.0;net11.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AssemblyName>NoCommons</AssemblyName>
Expand Down