Skip to content
Open
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
34 changes: 34 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Pack
run: dotnet pack --output ./nupkgs --configuration Release
- name: Publish Nuget to GitHub registry
run: dotnet nuget push ./nupkgs/*.nupkg -k ${GITHUB_TOKEN} -s https://nuget.pkg.github.com/Sharp-Point-Data/index.json --skip-duplicate --no-symbols
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion Core/Core.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard1.5</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Archon.Enums</AssemblyName>
<RootNamespace>Archon.Enums</RootNamespace>
<Product>Archon Framework Library™</Product>
Expand All @@ -11,6 +11,7 @@
<PackageProjectUrl>https://github.com/civicsource/enums/</PackageProjectUrl>
<RepositoryUrl>https://github.com/civicsource/enums.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Version>3.0.0</Version>
<Description>Provides convenient utility methods for working with Enums and their user-friendly descriptions</Description>
<PackageTags>enums utility description parser friendly names tostring</PackageTags>
</PropertyGroup>
Expand Down
3 changes: 2 additions & 1 deletion Geography/Geography.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard1.0</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>Archon.Enums.Geography</AssemblyName>
<RootNamespace>Archon.Enums</RootNamespace>
<Product>Archon Framework Library™</Product>
Expand All @@ -11,6 +11,7 @@
<PackageProjectUrl>https://github.com/civicsource/enums/</PackageProjectUrl>
<RepositoryUrl>https://github.com/civicsource/enums.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Version>3.0.0</Version>
<Description>Provides enums / descriptions for 248 countries and 75 US states and Canadian provinces</Description>
<PackageTags>states provinces user-friendly united states canada canadian</PackageTags>
</PropertyGroup>
Expand Down
11 changes: 7 additions & 4 deletions Tests/Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp1.1</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<AssemblyName>Archon.Enums.Tests</AssemblyName>
<RootNamespace>Archon.Enums.Tests</RootNamespace>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
<PackageReference Include="xunit" Version="2.2.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down