diff --git a/.github/workflows/lint-markdown.yml b/.github/workflows/lint-markdown.yml index 8be61ac7..ef9711b3 100644 --- a/.github/workflows/lint-markdown.yml +++ b/.github/workflows/lint-markdown.yml @@ -3,10 +3,10 @@ name: Lint Markdown on: push: - branches-ignore: [ main ] + branches: ['**'] pull_request: - branches: [ main ] - types: [ opened, synchronize, reopened, ready_for_review ] + branches: [main] + types: [opened, synchronize, reopened, ready_for_review] workflow_dispatch: @@ -31,7 +31,8 @@ jobs: git fetch origin "${{ github.base_ref }}" --depth=1 files=$(git diff --name-only "origin/${{ github.base_ref }}..HEAD" -- '*.md') elif [[ "${{ github.event_name }}" == "push" ]]; then - if [[ "${{ github.event.before }}" == "0000000000000000000000000000000000000000" ]]; then + # A new branch has no "before" commit, and a force-push leaves an unreachable one. + if ! git cat-file -e "${{ github.event.before }}^{commit}" 2>/dev/null; then files=$(git diff-tree --no-commit-id --name-only -r "${{ github.sha }}" -- '*.md') else files=$(git diff --name-only "${{ github.event.before }}" "${{ github.sha }}" -- '*.md') diff --git a/.gitignore b/.gitignore index 1fdfb4a3..9e08de5c 100644 --- a/.gitignore +++ b/.gitignore @@ -398,4 +398,5 @@ FodyWeavers.xsd /test.html /test1.html build-output.txt +build-log.txt test-output.txt diff --git a/README.md b/README.md index b548c09c..9ee05e18 100644 --- a/README.md +++ b/README.md @@ -6,17 +6,17 @@ A modern issue tracking application built with Blazor and MongoDB, featuring com [![.NET 10](https://img.shields.io/badge/.NET-10-512BD4?logo=dotnet)](https://dotnet.microsoft.com/) [![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/mpaulosky/IssueTracker/blob/main/LICENSE) -[![xUnit Tests](https://img.shields.io/badge/Tests-xUnit-blueviolet?logo=github)](https://github.com/mpaulosky/IssueTracker/actions/workflows/ci.yml) +[![xUnit Tests](https://img.shields.io/badge/Tests-xUnit-blueviolet?logo=github)](https://github.com/mpaulosky/IssueTracker/actions/workflows/test.yml) [![Latest release](https://img.shields.io/github/v/release/mpaulosky/IssueTracker)](https://github.com/mpaulosky/IssueTracker/releases/latest) [![Codecov](https://img.shields.io/codecov/c/github/mpaulosky/IssueTracker?logo=codecov)](https://codecov.io/gh/mpaulosky/IssueTracker) [![Stars](https://img.shields.io/github/stars/mpaulosky/IssueTracker)](https://github.com/mpaulosky/IssueTracker/stargazers) -[![Build and Test Suite](https://github.com/mpaulosky/IssueTracker/actions/workflows/ci.yml/badge.svg)](https://github.com/mpaulosky/IssueTracker/actions/workflows/ci.yml) -[![CodeQL](https://github.com/mpaulosky/IssueTracker/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/mpaulosky/IssueTracker/actions/workflows/codeql-analysis.yml) -[![.NET code metrics](https://github.com/mpaulosky/IssueTracker/actions/workflows/code-metrics.yml/badge.svg)](https://github.com/mpaulosky/IssueTracker/actions/workflows/code-metrics.yml) +[![Test Suite](https://github.com/mpaulosky/IssueTracker/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/mpaulosky/IssueTracker/actions/workflows/test.yml?query=branch%3Amain) +[![CodeQL](https://github.com/mpaulosky/IssueTracker/actions/workflows/codeql-analysis.yml/badge.svg?branch=main)](https://github.com/mpaulosky/IssueTracker/actions/workflows/codeql-analysis.yml?query=branch%3Amain) +[![.NET code metrics](https://github.com/mpaulosky/IssueTracker/actions/workflows/code-metrics.yml/badge.svg?branch=main)](https://github.com/mpaulosky/IssueTracker/actions/workflows/code-metrics.yml?query=branch%3Amain) -[![Lint Markdown](https://github.com/mpaulosky/IssueTracker/actions/workflows/lint-markdown.yml/badge.svg)](https://github.com/mpaulosky/IssueTracker/actions/workflows/lint-markdown.yml) -[![Lint YAML](https://github.com/mpaulosky/IssueTracker/actions/workflows/lint-yaml.yml/badge.svg)](https://github.com/mpaulosky/IssueTracker/actions/workflows/lint-yaml.yml) +[![Lint Markdown](https://github.com/mpaulosky/IssueTracker/actions/workflows/lint-markdown.yml/badge.svg?branch=main)](https://github.com/mpaulosky/IssueTracker/actions/workflows/lint-markdown.yml?query=branch%3Amain) +[![Lint YAML](https://github.com/mpaulosky/IssueTracker/actions/workflows/lint-yaml.yml/badge.svg?branch=main)](https://github.com/mpaulosky/IssueTracker/actions/workflows/lint-yaml.yml?query=branch%3Amain) [![Open issues](https://img.shields.io/github/issues/mpaulosky/IssueTracker)](https://github.com/mpaulosky/IssueTracker/issues) [![Closed issues](https://img.shields.io/github/issues-closed/mpaulosky/IssueTracker)](https://github.com/mpaulosky/IssueTracker/issues?q=is%3Aissue+is%3Aclosed) diff --git a/docs/build-log.txt b/docs/build-log.txt deleted file mode 100644 index f6b9cbfa..00000000 --- a/docs/build-log.txt +++ /dev/null @@ -1,130 +0,0 @@ -============================================================= -BUILD REPAIR LOG - IssueTracker Solution -Date: 2026-07-07 -Solution: IssueTracker.slnx -============================================================= - -INITIAL ISSUE DETECTED: -- Build errors due to NuGet package version downgrades (NU1109 errors) -- Total initial errors: 33 NU1109 errors -- Error: CS8805 in AppHost project (missing OutputType) -- Warnings: 3 ASPIRE004 warnings for non-executable project references - -============================================================= -STEP 1: PACKAGE RESTORE -============================================================= -Command: dotnet restore IssueTracker.slnx - -Issues Found: -- 33 NU1109 errors related to package downgrades -- Centrally managed package versions in Directory.Packages.props were lower than required by dependencies - -Affected Packages: -1. Microsoft.Extensions.Options: 10.0.0 → required 10.0.8 -2. Microsoft.Extensions.Configuration.UserSecrets: 10.0.0 → required 10.0.8 -3. Microsoft.Extensions.DependencyInjection: 10.0.0 → required 10.0.8 -4. Microsoft.Extensions.Diagnostics.HealthChecks: 10.0.0 → required 10.0.8 -5. MongoDB.Driver: 3.5.0 → required 3.9.0 -6. StackExchange.Redis: 2.9.32 → required 2.13.1 -7. MessagePack: 2.5.301 → required 2.5.302 - -============================================================= -STEP 2: RESOLUTION - Directory.Packages.props Updates -============================================================= -File Modified: /home/teqs/github/IssueTracker/Directory.Packages.props - -Changes Applied: -1. Updated Microsoft.Extensions.Configuration.UserSecrets: 10.0.0 → 10.0.8 -2. Updated Microsoft.Extensions.DependencyInjection: 10.0.0 → 10.0.8 -3. Updated Microsoft.Extensions.Diagnostics.HealthChecks: 10.0.0 → 10.0.8 -4. Updated Microsoft.Extensions.Options: 10.0.0 → 10.0.8 -5. Updated MongoDB.Driver: 3.5.0 → 3.9.0 -6. Updated StackExchange.Redis: 2.9.32 → 2.13.1 -7. Updated MessagePack: 2.5.301 → 2.5.302 - -Result: Errors reduced from 33 to 10 - -============================================================= -STEP 3: ADDITIONAL DEPENDENCY RESOLUTION -============================================================= -Command: dotnet restore IssueTracker.slnx (2nd attempt) - -Issue Found: -- 10 NU1109 errors for SharpCompress package downgrade -- SharpCompress: 0.48.0 → required 0.48.1 - -Resolution: -- Updated SharpCompress: 0.48.0 → 0.48.1 in Directory.Packages.props - -Result: All package restore errors resolved -Status: Restore complete (7.1s) - SUCCESS - -============================================================= -STEP 4: BUILD SOLUTION -============================================================= -Command: dotnet build IssueTracker.slnx --no-restore - -Issues Found: -1. Error CS8805: AppHost/Program.cs - Program using top-level statements must be an executable -2. Warning ASPIRE004 (3x): Library projects referenced without IsAspireProjectResource="false" - -File Modified: /home/teqs/github/IssueTracker/src/AppHost/AppHost.csproj - -Changes Applied: -1. Added Exe to PropertyGroup -2. Set IsAspireProjectResource="false" for library references: - - IssueTracker.Services.csproj - - IssueTracker.CoreBusiness.csproj - - IssueTracker.PlugIns.csproj - -Result: Build succeeded in 16.3s with 0 errors, 0 warnings - -============================================================= -STEP 5: TESTING -============================================================= -Command: dotnet test IssueTracker.slnx --no-build --verbosity normal - -Test Results Summary: -- Total Tests: 449 -- Passed: 449 -- Failed: 0 -- Skipped: 0 -- Duration: 9.4s - -Test Projects Executed: -1. IssueTracker.CoreBusiness.Tests.Unit -2. IssueTracker.Services.Tests.Unit -3. IssueTracker.PlugIns.Tests.Unit -4. IssueTracker.PlugIns.Tests.Integration (with TestContainers/MongoDB) -5. IssueTracker.UI.Tests.Unit (with bUnit) -6. ServiceDefaults.Tests -7. Integration.Tests -8. Architecture.Tests -9. AppHost.Tests - -Status: ALL TESTS PASSED ✓ - -============================================================= -FINAL STATUS: SUCCESS -============================================================= - -Solution Build: ✓ SUCCESS (16.3s, 0 errors, 0 warnings) -Unit Tests: ✓ SUCCESS (449/449 passed) -Integration Tests: ✓ SUCCESS (MongoDB, Redis containers) - -All build and test errors have been resolved. The solution is now in a clean state. - -============================================================= -SUMMARY OF FILES MODIFIED -============================================================= - -1. Directory.Packages.props - - Updated 8 package versions to resolve NU1109 downgrade errors - -2. src/AppHost/AppHost.csproj - - Added OutputType property - - Set IsAspireProjectResource for library references - -============================================================= -END OF BUILD LOG -=============================================================