-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Breaking Change: Update dependencies (#5)
**breaking change(TextTemplating): Update dependencies** * Microsoft.Extensions.FileProviders.Composite v6 => v7.0.0 * Microsoft.Extensions.FileProviders.Embedded v6 => v7.0.0 * Microsoft.Extensions.FileProviders.Physical" v6 => v7.0.0 * Microsoft.Extensions.Localization v6 => v7.0.0 * Scriban.Signed v.5.4.6 => 5.5.2 **breaking change(TextTemplating.Tests): Update dependencies** * Microsoft.Extensions.DependencyInjection v6 => v7.0.0 * Microsoft.Extensions.Logging.Abstractions v6 => v7.0.0 * Microsoft.NET.Test.Sdk v17.2.0 => v17.4.1 * NUnit3TestAdapter v4.2.1. => 4.3.1 **chore: Miscellaneous** chore: Update `.editorconfig` chore: Update GitHub action chore: disable warnings CS8766, CS1591 chore: Refactoring using latest language features chore: Create artifacts with GitHub action
- Loading branch information
Showing
10 changed files
with
181 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,51 @@ | ||
name: build + test | ||
name: .NET | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
branches: [ main, 'version/**', 'pr/**', 'pr-**' ] | ||
paths-ignore: | ||
- '**/*.md' | ||
pull_request: | ||
branches: [ main ] | ||
branches: [ main, 'version/**', 'pr/**', 'pr-**' ] | ||
types: [opened, synchronize, reopened] | ||
paths-ignore: | ||
- '**/*.md' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
name: Build | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
version: '2.0.0' | ||
versionFile: '2.0.0' | ||
packDotNetVersion: '6' | ||
strategy: | ||
matrix: | ||
dotnet-version: [ '3.1.x', '5.0.x' ] | ||
os: [ ubuntu-latest ] | ||
dotnet-version: [ '3.x', '6.x' ] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: ${{ matrix.dotnet-version }} | ||
- name: Restore dependencies | ||
run: dotnet restore ./Src/TextTemplating.sln | ||
- name: Build | ||
run: dotnet build --no-restore ./Src/TextTemplating.sln | ||
- name: Test | ||
run: dotnet test --no-build --verbosity normal ./Src/TextTemplating.sln | ||
- name: Pack | ||
if: startsWith(matrix.dotnet-version, env.packDotNetVersion) | ||
run: | | ||
echo "Packing Version: ${{ env.version }}, File Version: ${{ env.versionFile }}" | ||
dotnet build ./Src/TextTemplating.sln /verbosity:minimal --configuration release /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg /p:ContinuousIntegrationBuild=true /p:PackageOutputPath=${{ github.workspace }}/artifacts/ /p:Version=${{ env.version }} /p:FileVersion=${{ env.versionFile }} | ||
dotnet pack ./Src/TextTemplating.sln /verbosity:minimal --configuration release | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
if: startsWith(matrix.dotnet-version, env.packDotNetVersion) | ||
with: | ||
name: Packages_${{ env.version }} | ||
path: ${{ github.workspace }}/artifacts/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<Project> | ||
|
||
<PropertyGroup> | ||
<Product>Axuno.TextTemplating</Product> | ||
<Version>2.0.0</Version> | ||
<FileVersion>2.0.0</FileVersion> | ||
<AssemblyVersion>2.0.0.0</AssemblyVersion> <!--only update AssemblyVersion with major releases --> | ||
<Company>axuno gGmbH</Company> | ||
<Authors>axuno gGmbH</Authors> | ||
<CurrentYear>$([System.DateTime]::Now.ToString(yyyy))</CurrentYear> | ||
<Copyright>© 2013-$(CurrentYear) Volosoft. Open source license with LGPLv3.0</Copyright> | ||
<LangVersion>latest</LangVersion> | ||
<EnableNETAnalyzers>true</EnableNETAnalyzers> | ||
<AnalysisMode>Default</AnalysisMode> | ||
<AnalysisModeSecurity>All</AnalysisModeSecurity> | ||
<AnalysisLevel>latest</AnalysisLevel> | ||
<Features>strict</Features> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 36 additions & 37 deletions
73
Src/Axuno.TextTemplating.Tests/Axuno.TextTemplating.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,44 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net6.0</TargetFrameworks> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>..\Axuno.TextTemplating\Axuno.TextTemplating.snk</AssemblyOriginatorKeyFile> | ||
<Authors>axuno gGmbH</Authors> | ||
<Company>axuno gGmbH</Company> | ||
<Product>Axuno.TextTemplating</Product> | ||
<Copyright>© axuno gGmbH</Copyright> | ||
<PackageProjectUrl>https://github.com/axuno/Axuno.TextTemplating</PackageProjectUrl> | ||
<RepositoryType>Git</RepositoryType> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<LangVersion>latest</LangVersion> | ||
<Nullable>enable</Nullable> | ||
<DelaySign>false</DelaySign> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetFrameworks>net6.0</TargetFrameworks> | ||
<SignAssembly>true</SignAssembly> | ||
<AssemblyOriginatorKeyFile>..\Axuno.TextTemplating\Axuno.TextTemplating.snk</AssemblyOriginatorKeyFile> | ||
<Authors>axuno gGmbH</Authors> | ||
<Company>axuno gGmbH</Company> | ||
<Product>Axuno.TextTemplating</Product> | ||
<CurrentYear>$([System.DateTime]::Now.ToString(yyyy))</CurrentYear> | ||
<Copyright>© 2013-$(CurrentYear) axuno gGmbH</Copyright> | ||
<RepositoryType>Git</RepositoryType> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<Nullable>enable</Nullable> | ||
<DelaySign>false</DelaySign> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" /> | ||
<PackageReference Include="NUnit" Version="3.13.3" /> | ||
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" /> | ||
<PackageReference Include="NUnit" Version="3.13.3" /> | ||
<PackageReference Include="NUnit3TestAdapter" Version="4.3.1" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Axuno.TextTemplating\Axuno.TextTemplating.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\Axuno.TextTemplating\Axuno.TextTemplating.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Update="Localization\TestLocalizationResource.Designer.cs"> | ||
<DesignTime>True</DesignTime> | ||
<AutoGen>True</AutoGen> | ||
<DependentUpon>TestLocalizationResource.resx</DependentUpon> | ||
</Compile> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Update="Localization\TestLocalizationResource.Designer.cs"> | ||
<DesignTime>True</DesignTime> | ||
<AutoGen>True</AutoGen> | ||
<DependentUpon>TestLocalizationResource.resx</DependentUpon> | ||
</Compile> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Update="Localization\TestLocalizationResource.resx"> | ||
<Generator>ResXFileCodeGenerator</Generator> | ||
<LastGenOutput>TestLocalizationResource.Designer.cs</LastGenOutput> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EmbeddedResource Update="Localization\TestLocalizationResource.resx"> | ||
<Generator>ResXFileCodeGenerator</Generator> | ||
<LastGenOutput>TestLocalizationResource.Designer.cs</LastGenOutput> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.