Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
3190d2a
Migrated project to .NET 10, updated dependencies, replaced pipelines…
carldebilly Feb 15, 2026
9a895b3
Migrate codebase to use file-scoped namespaces, improved serializatio…
carldebilly Feb 15, 2026
2f9ce1b
Added initial contract models for TenantCloud API integration: transa…
carldebilly Feb 15, 2026
07d0054
Add tests for JSON converters and improve exception messages
carldebilly Feb 15, 2026
98b8007
Refactored authentication mechanism to use `ITcAuthTokenProvider`, re…
carldebilly Feb 15, 2026
8c708eb
Refactored token handling: replaced `InMemoryTcContext` with `StaticT…
carldebilly Feb 15, 2026
c471e8f
Introduced `CdpTokenProvider` for Chrome DevTools Protocol-based toke…
carldebilly Feb 15, 2026
f24f2df
Migrated list response models to unified JSON: replaced `TcListRespon…
carldebilly Feb 15, 2026
f4e079d
Refactored API endpoints to use `GetJsonApiPage`, added support for `…
carldebilly Feb 15, 2026
df0b904
Refactored and reorganized paginated source extensions: added new met…
carldebilly Feb 15, 2026
7c880a6
Updated tests to reflect refactor: replaced `Tenants` references with…
carldebilly Feb 15, 2026
d23186c
Implemented `SecureTokenStore` for OS-native credential storage, adde…
carldebilly Feb 15, 2026
7fb562f
Remove `.Cdp` namespace suffix from `ITcTokenStore` and `TcTokenSet`.
carldebilly Feb 15, 2026
d39a871
Consolidated `using` directives into `GlobalUsings.cs` files for shar…
carldebilly Feb 15, 2026
feede53
Updated copyright year to auto-update dynamically in project files.
carldebilly Feb 15, 2026
3793f26
Add service collection extensions for dependency injection support.
carldebilly Feb 15, 2026
1750fab
Update README with improved documentation and usage examples.
carldebilly Feb 15, 2026
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
138 changes: 138 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
name: CI

on:
pull_request:
push:
branches: [master, 'release/**']

permissions:
contents: write
checks: write

env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

jobs:
build-test-pack:
name: Build, Test, Pack
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0 # Nerdbank.GitVersioning needs full history

- name: Prepare release branch
if: startsWith(github.ref, 'refs/heads/release/')
shell: pwsh
run: |
$content = Get-Content version.json -Raw
if ($content -match '"version"\s*:\s*"[^"]*-') {
$content = $content -replace '("version"\s*:\s*"[^"]*)-[^"]*"', '$1"'
Set-Content version.json $content -NoNewline
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add version.json
git commit -m "chore: strip pre-release tag for release branch"
git push
}

- name: Setup .NET
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: '10.0.x'
dotnet-quality: ga

- name: Restore
run: dotnet restore src/TenantCloud.slnx --force

- name: Build
run: dotnet build src/TenantCloud.slnx -c Release -warnaserror --no-restore

- name: Test
run: >-
dotnet test --solution src/TenantCloud.slnx
-c Release
--no-build
--results-directory TestResults
--
--report-trx
--coverage
--coverage-output-format cobertura

- name: Test report
if: always()
uses: dorny/test-reporter@v1
with:
name: Test Results
path: 'TestResults/**/*.trx'
reporter: dotnet-trx

- name: Coverage summary
if: always()
shell: pwsh
run: |
$coberturaFiles = Get-ChildItem -Path TestResults -Filter '*.cobertura.xml' -Recurse -ErrorAction SilentlyContinue
if (-not $coberturaFiles -or $coberturaFiles.Count -eq 0) {
Write-Host 'No Cobertura coverage files found — skipping summary.'
exit 0
}
foreach ($file in $coberturaFiles) {
[xml]$xml = Get-Content $file.FullName
$lineRate = [math]::Round([double]$xml.coverage.'line-rate' * 100, 1)
$branchRate = [math]::Round([double]$xml.coverage.'branch-rate' * 100, 1)
"## Code Coverage`n" | Out-File -Append $env:GITHUB_STEP_SUMMARY
"| Metric | Value |" | Out-File -Append $env:GITHUB_STEP_SUMMARY
"|--------|-------|" | Out-File -Append $env:GITHUB_STEP_SUMMARY
"| Line coverage | ${lineRate}% |" | Out-File -Append $env:GITHUB_STEP_SUMMARY
"| Branch coverage | ${branchRate}% |" | Out-File -Append $env:GITHUB_STEP_SUMMARY
Write-Host "Line coverage: ${lineRate}%, Branch coverage: ${branchRate}%"
}

- name: Pack
run: dotnet pack src/TenantCloud.slnx -c Release --no-restore -o ${{ runner.temp }}/packages

- name: Upload test results
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: test-results
path: TestResults/**
retention-days: 14

- name: Upload packages
if: success()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: packages
path: ${{ runner.temp }}/packages/*.nupkg
retention-days: 14

- name: Resolve version
id: version
if: success() && github.event_name == 'push'
shell: pwsh
run: |
dotnet tool install -g nbgv
$v = nbgv get-version -v NuGetPackageVersion
echo "version=$v" >> $env:GITHUB_OUTPUT

- name: Publish to NuGet
if: success() && github.event_name == 'push'
run: >-
dotnet nuget push "${{ runner.temp }}/packages/*.nupkg"
--source https://api.nuget.org/v3/index.json
--api-key ${{ secrets.NUGET_API_KEY }}
--skip-duplicate

- name: Create GitHub Release
if: success() && github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release/')
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >-
gh release create "v${{ steps.version.outputs.version }}"
"${{ runner.temp }}/packages/*.nupkg"
--title "v${{ steps.version.outputs.version }}"
--generate-notes
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -337,4 +337,8 @@ ASALocalRun/
.localhistory/

# BeatPulse healthcheck temp database
healthchecksdb
healthchecksdb

# TenantCloud MCP auth tokens (secrets!)
.tenantcloud-mcp/
.claude/
Loading