Skip to content

Commit dfd3eb5

Browse files
jaybarden1jbarden
andauthored
Update the icons and naming standards (#26)
Co-authored-by: Jason Barden <[email protected]>
1 parent 2e4ee20 commit dfd3eb5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+578
-684
lines changed

.editorconfig

Lines changed: 190 additions & 190 deletions
Large diffs are not rendered by default.

.github/workflows/dotnet.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
name: Build and analyze
1313
runs-on: windows-latest
1414
env:
15+
SONAR_PROJECT: 'astar-dev-utilities'
1516
ProjectName: 'AStar.Dev.Utilities'
1617
RepositoryName: 'astar-dev-utilities'
1718
steps:
@@ -26,45 +27,36 @@ jobs:
2627
with:
2728
fetch-depth: 0
2829

29-
- name: Cache SonarCloud packages
30+
- name: 🛠 Cache SonarQube Cloud packages
3031
uses: actions/[email protected]
3132
with:
3233
path: ~\sonar\cache
3334
key: ${{ runner.os }}-sonar
3435
restore-keys: ${{ runner.os }}-sonar
3536

36-
- name: Cache SonarCloud scanner
37+
- name: 🛠 Cache SonarQube Cloud scanner
3738
id: cache-sonar-scanner
3839
uses: actions/[email protected]
3940
with:
4041
path: .\.sonar\scanner
4142
key: ${{ runner.os }}-sonar-scanner
4243
restore-keys: ${{ runner.os }}-sonar-scanner
4344

44-
- name: Install SonarCloud scanner
45+
- name: 🛠 Install SonarQube Cloud scanner
4546
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
4647
shell: powershell
4748
run: |
4849
New-Item -Path .\.sonar\scanner -ItemType Directory
4950
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
5051
51-
- name: Build and analyze
52+
- name: 🔍 Restore, 🛠 Build and 🧪 Test with ☁️ SonarCloud / Qube
5253
env:
5354
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5455
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
5556
shell: powershell
5657
run: |
5758
dotnet tool install --global dotnet-coverage
58-
.\.sonar\scanner\dotnet-sonarscanner begin /k:"astar-development_${{ env.RepositoryName }}" /o:"astar-development" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml /d:sonar.scanner.scanAll=false
59+
.\.sonar\scanner\dotnet-sonarscanner begin /k:"astar-development_${{ env.SONAR_PROJECT }}" /o:"astar-development" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml /d:sonar.scanner.scanAll=false /d:sonar.scanner.skipJreProvisioning=true
5960
dotnet build --configuration Release
60-
dotnet-coverage collect 'dotnet test --filter "FullyQualifiedName!~Acceptance.Tests"' -f xml -o 'coverage.xml'
61+
dotnet-coverage collect 'dotnet test --filter "FullyQualifiedName!~Tests.EndToEnd"' -f xml -o 'coverage.xml'
6162
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
62-
63-
- name: Pack NuGet package
64-
if: github.ref == 'refs/heads/main'
65-
run: dotnet pack .\src\${{ env.ProjectName }}\${{ env.ProjectName }}.csproj
66-
67-
- name: Push to NuGet
68-
if: github.ref == 'refs/heads/main'
69-
run: dotnet nuget push "**\${{ env.ProjectName }}.*.nupkg" --api-key ${{secrets.nuget_api_key}} --skip-duplicate --source https://api.nuget.org/v3/index.json
70-

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: 🚀 Publish NuGet Package
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
env:
12+
ProjectName: 'AStar.Dev.Utilities'
13+
14+
steps:
15+
- name: 🧾 Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: 🛠 Setup .NET
19+
uses: actions/setup-dotnet@v4
20+
with:
21+
dotnet-version: '9.x'
22+
23+
- name: 🔍 Restore dependencies
24+
run: dotnet restore
25+
26+
- name: 🛠 Build solution
27+
run: dotnet build --configuration Release
28+
29+
- name: 📦 Pack NuGet package
30+
run: dotnet pack ./src/${{ env.ProjectName }}/${{ env.ProjectName }}.csproj --configuration Release --output ./nupkg
31+
32+
- name: 🚀 Publish to NuGet.org
33+
run: dotnet nuget push ./nupkg/*.nupkg --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NuGet_API_Key }} #
34+

AStar.Dev.Utilities.sln

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{538ADD9A
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "unit", "unit", "{4FDD8291-A186-40FE-BB14-CA60EB3274FF}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Utilities.Tests.Unit", "tests\unit\AStar.Dev.Utilities.Tests.Unit\AStar.Dev.Utilities.Tests.Unit.csproj", "{713622F6-BCF6-47AE-BBD2-45CCE257C664}"
11-
EndProject
1210
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{21399C8D-85EE-4D9A-B57C-6EF16EEC03EC}"
1311
EndProject
1412
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Utilities", "src\AStar.Dev.Utilities\AStar.Dev.Utilities.csproj", "{22F07837-7837-4AC9-9CBC-8906325B99A7}"
@@ -29,8 +27,11 @@ EndProject
2927
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{4FA6EC7F-8049-496E-BBEE-7374E3FA4E70}"
3028
ProjectSection(SolutionItems) = preProject
3129
.github\workflows\dotnet.yml = .github\workflows\dotnet.yml
30+
.github\workflows\publish.yml = .github\workflows\publish.yml
3231
EndProjectSection
3332
EndProject
33+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Utilities.Tests.Unit", "tests\AStar.Dev.Utilities.Tests.Unit\AStar.Dev.Utilities.Tests.Unit.csproj", "{D92519EC-D6B0-4F9B-B170-BED80DCC0F4C}"
34+
EndProject
3435
Global
3536
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3637
Debug|Any CPU = Debug|Any CPU
@@ -40,19 +41,19 @@ Global
4041
HideSolutionNode = FALSE
4142
EndGlobalSection
4243
GlobalSection(ProjectConfigurationPlatforms) = postSolution
43-
{713622F6-BCF6-47AE-BBD2-45CCE257C664}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
44-
{713622F6-BCF6-47AE-BBD2-45CCE257C664}.Debug|Any CPU.Build.0 = Debug|Any CPU
45-
{713622F6-BCF6-47AE-BBD2-45CCE257C664}.Release|Any CPU.ActiveCfg = Release|Any CPU
46-
{713622F6-BCF6-47AE-BBD2-45CCE257C664}.Release|Any CPU.Build.0 = Release|Any CPU
4744
{22F07837-7837-4AC9-9CBC-8906325B99A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4845
{22F07837-7837-4AC9-9CBC-8906325B99A7}.Debug|Any CPU.Build.0 = Debug|Any CPU
4946
{22F07837-7837-4AC9-9CBC-8906325B99A7}.Release|Any CPU.ActiveCfg = Release|Any CPU
5047
{22F07837-7837-4AC9-9CBC-8906325B99A7}.Release|Any CPU.Build.0 = Release|Any CPU
48+
{D92519EC-D6B0-4F9B-B170-BED80DCC0F4C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
49+
{D92519EC-D6B0-4F9B-B170-BED80DCC0F4C}.Debug|Any CPU.Build.0 = Debug|Any CPU
50+
{D92519EC-D6B0-4F9B-B170-BED80DCC0F4C}.Release|Any CPU.ActiveCfg = Release|Any CPU
51+
{D92519EC-D6B0-4F9B-B170-BED80DCC0F4C}.Release|Any CPU.Build.0 = Release|Any CPU
5152
EndGlobalSection
5253
GlobalSection(NestedProjects) = preSolution
5354
{4FDD8291-A186-40FE-BB14-CA60EB3274FF} = {538ADD9A-B30C-4385-B1B0-5EF853807ED1}
54-
{713622F6-BCF6-47AE-BBD2-45CCE257C664} = {4FDD8291-A186-40FE-BB14-CA60EB3274FF}
5555
{22F07837-7837-4AC9-9CBC-8906325B99A7} = {21399C8D-85EE-4D9A-B57C-6EF16EEC03EC}
5656
{4FA6EC7F-8049-496E-BBEE-7374E3FA4E70} = {58D4DA15-FD32-449A-9DDC-048271C65846}
57+
{D92519EC-D6B0-4F9B-B170-BED80DCC0F4C} = {4FDD8291-A186-40FE-BB14-CA60EB3274FF}
5758
EndGlobalSection
5859
EndGlobal
Lines changed: 26 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,38 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<AnalysisLevel>latest-recommended</AnalysisLevel>
5-
<Authors>AStar Development, Jason Barden</Authors>
6-
<Company>AStar Development</Company>
7-
<Copyright>AStar Development, 2025</Copyright>
8-
<Description>A collection of useful utilities that do not fit within any of the other, more targeted, AStar NuGet packages.</Description>
9-
<DocumentationFile>$(AssemblyName).xml</DocumentationFile>
10-
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
11-
<GenerateDocumentationFile>True</GenerateDocumentationFile>
12-
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
4+
<TargetFramework>net9.0</TargetFramework>
135
<ImplicitUsings>enable</ImplicitUsings>
14-
<IncludeSymbols>True</IncludeSymbols>
15-
<IsPackable>true</IsPackable>
166
<Nullable>enable</Nullable>
17-
<PackageIcon>AStar.png</PackageIcon>
18-
<PackageLicenseFile>LICENSE</PackageLicenseFile>
19-
<PackageProjectUrl>https://github.com/astar-development/astar-dev-utilities</PackageProjectUrl>
7+
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
8+
<Title>AStar Dev Utilities</Title>
9+
<Company>AStar Development</Company>
10+
<Copyright>AStar Development, 2024</Copyright>
2011
<PackageReadmeFile>Readme.md</PackageReadmeFile>
21-
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
22-
<RepositoryType>git</RepositoryType>
12+
<IncludeSymbols>True</IncludeSymbols>
13+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
14+
<GenerateDocumentationFile>True</GenerateDocumentationFile>
2315
<RepositoryUrl>https://github.com/astar-development/astar-dev-utilities.git</RepositoryUrl>
16+
<RepositoryType>git</RepositoryType>
17+
<PackageProjectUrl>https://github.com/astar-development/astar-dev-utilities</PackageProjectUrl>
18+
<Description>A collection of useful utilities that do not fit within any of the other, more targeted, AStar Dev NuGet packages.</Description>
19+
<Version>1.6.2</Version>
20+
<Authors>AStar Development, Jason Barden</Authors>
21+
<RepositoryType>git</RepositoryType>
22+
<IncludeSymbols>True</IncludeSymbols>
2423
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
25-
<TargetFramework>net9.0</TargetFramework>
26-
<Title>AStar Dev Utilities</Title>
27-
<Version>1.6.1</Version>
24+
<PackageReadmeFile>Readme.md</PackageReadmeFile>
25+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
26+
<PackageLicenseFile>LICENSE</PackageLicenseFile>
27+
<DocumentationFile>$(AssemblyName).xml</DocumentationFile>
28+
<PackageReleaseNotes>Add RemoveTrailing extension and fix bug in truncate so length specified is honoured.</PackageReleaseNotes>
2829
</PropertyGroup>
2930

31+
<ItemGroup>
32+
<None Include="LICENSE" Pack="true" PackagePath=""/>
33+
<None Include="Readme.md" Pack="true" PackagePath=""/>
34+
</ItemGroup>
35+
3036
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
3137
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
3238
<NoWarn>1701;1702;</NoWarn>
@@ -37,30 +43,10 @@
3743
<NoWarn>1701;1702;</NoWarn>
3844
</PropertyGroup>
3945

40-
<ItemGroup>
41-
<None Include="..\..\AStar.png">
42-
<Pack>True</Pack>
43-
<PackagePath>\</PackagePath>
44-
</None>
45-
<None Include="..\..\LICENSE">
46-
<Pack>True</Pack>
47-
<PackagePath>\</PackagePath>
48-
</None>
49-
<None Include="..\..\Readme.md">
50-
<Pack>True</Pack>
51-
<PackagePath>\</PackagePath>
52-
</None>
53-
</ItemGroup>
54-
5546
<ItemGroup>
5647
<None Update="AStar.png">
5748
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
5849
</None>
5950
</ItemGroup>
6051

61-
<ItemGroup>
62-
<PackageReference Include="AStar.Dev.Technical.Debt.Reporting" Version="0.1.0"/>
63-
<PackageReference Include="TestableIO.System.IO.Abstractions.Wrappers" Version="22.0.14"/>
64-
</ItemGroup>
65-
6652
</Project>

0 commit comments

Comments
 (0)