Skip to content

Commit abbf855

Browse files
fstaffaFilip Staffa
andauthored
switch to t4 cli, update country definitions to correspond to code (#85)
Co-authored-by: Filip Staffa <fstaffa@cimpress.com>
1 parent 1dea354 commit abbf855

23 files changed

Lines changed: 811 additions & 162 deletions

.config/dotnet-tools.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"dotnet-t4": {
6+
"version": "3.0.0",
7+
"commands": [
8+
"t4"
9+
]
10+
}
11+
}
12+
}

.github/workflows/dotnetcore.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16-
- name: Setup .NET Core 2.2
17-
uses: actions/setup-dotnet@v3
18-
with:
19-
dotnet-version: 2.2.x
20-
- name: Setup .NET Core 3.1
21-
uses: actions/setup-dotnet@v3
22-
with:
23-
dotnet-version: 3.1.x
2416
- name: Setup .NET 6
2517
uses: actions/setup-dotnet@v3
2618
with:
@@ -29,6 +21,20 @@ jobs:
2921
uses: actions/setup-dotnet@v3
3022
with:
3123
dotnet-version: 8.0.x
24+
- name: Setup .NET 9
25+
uses: actions/setup-dotnet@v3
26+
with:
27+
dotnet-version: 9.0.x
28+
- name: Setup .NET 10
29+
uses: actions/setup-dotnet@v3
30+
with:
31+
dotnet-version: 10.0.x
32+
- name: Restore dotnet tools
33+
run: dotnet tool restore
34+
- name: Regenerate from T4
35+
run: dotnet t4 src/PostalCodes/Generated/PostalCodeFactory.gen.tt
36+
- name: Verify no drift
37+
run: git diff --exit-code
3238
- name: Build with dotnet
3339
run: dotnet build --configuration Release /p:ContinuousIntegrationBuild=true
3440
- name: Test

src/PostalCodes.UnitTests/PostalCodes.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>netcoreapp2.2;netcoreapp3.1;net6.0;net8.0</TargetFrameworks>
3+
<TargetFrameworks>net6.0;net8.0;net9.0;net10.0</TargetFrameworks>
44
</PropertyGroup>
55
<ItemGroup>
66
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" />

0 commit comments

Comments
 (0)