Skip to content

Commit 51dac18

Browse files
committed
Add the AddBearerToken extension
1 parent af0b4cb commit 51dac18

17 files changed

+291
-270
lines changed

.github/workflows/dotnet.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
build:
1212
name: Build and analyze
1313
runs-on: windows-latest
14+
env:
15+
ProjectName: 'AStar.Dev.Utilities'
16+
RepositoryName: 'astar-dev-utilities'
1417
steps:
1518
- name: Set up JDK
1619
uses: actions/setup-java@v4.4.0
@@ -52,16 +55,16 @@ jobs:
5255
shell: powershell
5356
run: |
5457
dotnet tool install --global dotnet-coverage
55-
.\.sonar\scanner\dotnet-sonarscanner begin /k:"astar-development_astar-dev-utilities" /o:"astar-development" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
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
5659
dotnet build --configuration Release
5760
dotnet-coverage collect 'dotnet test --filter "FullyQualifiedName!~Acceptance.Tests"' -f xml -o 'coverage.xml'
5861
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
5962
6063
- name: Pack NuGet package
6164
if: github.ref == 'refs/heads/main'
62-
run: dotnet pack .\src\AStar.Dev.Utilities\AStar.Dev.Utilities.csproj
65+
run: dotnet pack .\src\${{ env.ProjectName }}\${{ env.ProjectName }}.csproj
6366

6467
- name: Push to NuGet
6568
if: github.ref == 'refs/heads/main'
66-
run: dotnet nuget push "**\AStar.Dev.Utilities.*.nupkg" --api-key ${{secrets.nuget_api_key}} --skip-duplicate --source https://api.nuget.org/v3/index.json
69+
run: dotnet nuget push "**\${{ env.ProjectName }}.*.nupkg" --api-key ${{secrets.nuget_api_key}} --skip-duplicate --source https://api.nuget.org/v3/index.json
6770

AStar.Dev.Utilities.sln

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ EndProject
2424
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{58D4DA15-FD32-449A-9DDC-048271C65846}"
2525
ProjectSection(SolutionItems) = preProject
2626
.github\dependabot.yml = .github\dependabot.yml
27+
EndProjectSection
28+
EndProject
29+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{4FA6EC7F-8049-496E-BBEE-7374E3FA4E70}"
30+
ProjectSection(SolutionItems) = preProject
2731
.github\workflows\dotnet.yml = .github\workflows\dotnet.yml
2832
EndProjectSection
2933
EndProject
@@ -49,5 +53,6 @@ Global
4953
{4FDD8291-A186-40FE-BB14-CA60EB3274FF} = {538ADD9A-B30C-4385-B1B0-5EF853807ED1}
5054
{713622F6-BCF6-47AE-BBD2-45CCE257C664} = {4FDD8291-A186-40FE-BB14-CA60EB3274FF}
5155
{22F07837-7837-4AC9-9CBC-8906325B99A7} = {21399C8D-85EE-4D9A-B57C-6EF16EEC03EC}
56+
{4FA6EC7F-8049-496E-BBEE-7374E3FA4E70} = {58D4DA15-FD32-449A-9DDC-048271C65846}
5257
EndGlobalSection
5358
EndGlobal

CodeMaid.config

Lines changed: 0 additions & 75 deletions
This file was deleted.

src/AStar.Dev.Utilities/AStar.Dev.Utilities.csproj

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,30 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
7-
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
8-
<Title>AStar Dev Utilities</Title>
4+
<AnalysisLevel>latest-recommended</AnalysisLevel>
5+
<Authors>AStar Development, Jason Barden</Authors>
96
<Company>AStar Development</Company>
10-
<Copyright>AStar Development, 2024</Copyright>
11-
<IncludeSymbols>True</IncludeSymbols>
12-
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
13-
<GenerateDocumentationFile>True</GenerateDocumentationFile>
14-
<RepositoryUrl>https://github.com/astar-development/astar-dev-utilities.git</RepositoryUrl>
15-
<RepositoryType>git</RepositoryType>
16-
<PackageProjectUrl>https://github.com/astar-development/astar-dev-utilities</PackageProjectUrl>
7+
<Copyright>AStar Development, 2025</Copyright>
178
<Description>A collection of useful utilities that do not fit within any of the other, more targeted, AStar NuGet packages.</Description>
18-
<Version>1.6.0</Version>
19-
<Authors>AStar Development, Jason Barden</Authors>
20-
<RepositoryType>git</RepositoryType>
9+
<DocumentationFile>$(AssemblyName).xml</DocumentationFile>
10+
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
11+
<GenerateDocumentationFile>True</GenerateDocumentationFile>
12+
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
13+
<ImplicitUsings>enable</ImplicitUsings>
2114
<IncludeSymbols>True</IncludeSymbols>
22-
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
15+
<IsPackable>true</IsPackable>
16+
<Nullable>enable</Nullable>
17+
<PackageIcon>AStar.png</PackageIcon>
18+
<PackageLicenseFile>LICENSE</PackageLicenseFile>
19+
<PackageProjectUrl>https://github.com/astar-development/astar-dev-utilities</PackageProjectUrl>
2320
<PackageReadmeFile>Readme.md</PackageReadmeFile>
2421
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
25-
<PackageLicenseFile>LICENSE</PackageLicenseFile>
26-
<DocumentationFile>$(AssemblyName).xml</DocumentationFile>
27-
<PackageIcon>AStar.png</PackageIcon>
28-
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
29-
<AnalysisLevel>latest-recommended</AnalysisLevel>
22+
<RepositoryType>git</RepositoryType>
23+
<RepositoryUrl>https://github.com/astar-development/astar-dev-utilities.git</RepositoryUrl>
24+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
25+
<TargetFramework>net9.0</TargetFramework>
26+
<Title>AStar Dev Utilities</Title>
27+
<Version>1.6.1</Version>
3028
</PropertyGroup>
3129

3230
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
@@ -61,6 +59,7 @@
6159
</ItemGroup>
6260

6361
<ItemGroup>
62+
<PackageReference Include="AStar.Dev.Technical.Debt.Reporting" Version="0.1.0"/>
6463
<PackageReference Include="TestableIO.System.IO.Abstractions.Wrappers" Version="22.0.14"/>
6564
</ItemGroup>
6665

0 commit comments

Comments
 (0)