Skip to content

Commit

Permalink
build: ensure dotnet build and dotnet pack works - including resource…
Browse files Browse the repository at this point in the history
…s assemblies
  • Loading branch information
davidkallesen committed Feb 6, 2025
1 parent 9ad6d8a commit d754e96
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/post-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ jobs:
- name: 🛠️ Build
run: dotnet build -c Release --no-restore /p:UseSourceLink=true

- name: 🛠️ Build netstandard2.1
run: dotnet build -c Release --no-restore /p:UseSourceLink=true -f netstandard2.1 src/Atc/Atc.csproj

- name: 🧪 Run unit tests
run: dotnet test -c Release --no-build --filter "Category!=Integration"

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pre-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
- name: 🛠️ Building library in release mode
run: dotnet build -c Release --no-restore

- name: 🛠️ Building library in release mode for netstandard2.1
run: dotnet build -c Release --no-restore -f netstandard2.1 src/Atc/Atc.csproj

dotnet-test:
runs-on: ubuntu-latest
needs:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
- name: 🛠️ Building library in release mode
run: dotnet build -c Release --no-restore /p:UseSourceLink=true

- name: 🛠️ Building library in release mode for netstandard2.1
run: dotnet build -c Release --no-restore -f netstandard2.1 src/Atc/Atc.csproj

- name: ⏩ Merge to release-branch
run: |
git config --local user.email ${{ env.ATC_EMAIL }}
Expand Down
1 change: 1 addition & 0 deletions src/Atc/Atc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<PackageId>Atc</PackageId>
<PackageTags>netstandard;common</PackageTags>
<Description>Atc is a collection of classes and extension methods for common functionality.</Description>
<GenerateSatelliteAssemblies>true</GenerateSatelliteAssemblies>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions src/Atc/Extensions/StringExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ namespace System;
/// <summary>
/// Extensions for the string class.
/// </summary>
[SuppressMessage("Spacing Rules", "SA1028:Code should not contain trailing whitespace", Justification = "OK - #if")]
[SuppressMessage("Documentation Rules", "SA1625:Element documentation should not be copied and pasted", Justification = "OK - #if")]
public static class StringExtensions
{
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion test/Atc.Tests/Atc.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0;netstandard2.1</TargetFrameworks>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down

0 comments on commit d754e96

Please sign in to comment.