Skip to content

Commit

Permalink
Merge pull request #567 from christianhelle/fix-build
Browse files Browse the repository at this point in the history
Fix Build workflow
  • Loading branch information
christianhelle authored Dec 17, 2024
2 parents bd067fd + 44a6a23 commit 024707a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ env:
jobs:
build:
name: 👌 Verify build
runs-on: ubuntu-latest
steps:
runs-on: windows-latest
steps:
- name: 🛒 Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0'
- name: 🛠️ Prepare
continue-on-error: true
run: |
Expand All @@ -37,7 +40,7 @@ jobs:
- name: 🛠️ Build
run: dotnet build -c Release src/Refitter.sln -p:UseSourceLink=true -p:PackageVersion="${{ env.VERSION }}" -p:Version="${{ env.VERSION }}"
- name: 🧪 Test
run: dotnet test src/Refitter.sln -c Release
run: dotnet test src/Refitter.sln -c Release
- name: 🗳️ Upload
uses: actions/upload-artifact@v4
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0" PrivateAssets="all" />
<PackageReference Include="H.Generators.Extensions" Version="1.24.0" PrivateAssets="all" />
<PackageReference Include="NSwag.CodeGeneration.CSharp" Version="14.2.0" PrivateAssets="all" />
<PackageReference Include="NSwag.Core.Yaml" Version="14.2.0" PrivateAssets="all" />
Expand Down
4 changes: 2 additions & 2 deletions src/Refitter.Tests/SerializerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void Can_Deserialize_RefitGeneratorSettingsWithoutNameGenerators(
.Should()
.BeEquivalentTo(settings, options => options
.Excluding(settings => settings.ParameterNameGenerator)
.Excluding(settings => settings.CodeGeneratorSettings.PropertyNameGenerator));
.Excluding(settings => settings.CodeGeneratorSettings!.PropertyNameGenerator));
}

[Theory, AutoNSubstituteData]
Expand All @@ -49,6 +49,6 @@ public void Deserialize_Is_Case_Insensitive(
.Should()
.BeEquivalentTo(settings, options => options
.Excluding(settings => settings.ParameterNameGenerator)
.Excluding(settings => settings.CodeGeneratorSettings.PropertyNameGenerator));
.Excluding(settings => settings.CodeGeneratorSettings!.PropertyNameGenerator));
}
}

0 comments on commit 024707a

Please sign in to comment.