Skip to content

[CI/CD] Inconsistent formatting checks: Publish fails while PR Build passes #120

@Grabauskas

Description

@Grabauskas

We are experiencing inconsistency between the Pull Request CI build and the Publish workflow. While the PR build completes successfully, the Publish workflow (Docker build) is failing due to a code formatting error.

Context & Logs

  1. PR Build (Passed)
    Run: Job #57428578211

      ZGW.Documenten.Messaging.Listener -> /home/runner/work/ZGW-APIs/ZGW-APIs/src/OneGround.ZGW.Documenten.Messaging.Listener/bin/Release/net8.0/OneGround.ZGW.Documenten.Messaging.Listener.dll
    
  2. Publish / Docker Build (Failed)
    Run: Job #57428607020

    #12 [build 5/5] RUN dotnet publish ... -r linux-x64
    #12 5.940 /src/src/OneGround.ZGW.Documenten.Jobs/Subscription/ManageSubscriptionsJob.cs : error : Was not formatted.             [/src/src/OneGround.ZGW.Documenten.Jobs/ZGW.Documenten.Jobs.csproj]
    #12 5.941      ----------------------------- Expected: Around Line 66 -----------------------------
    #12 5.941                   x.ClientId,
    #12 5.941                   x.ClientSecret,  <-- Expecting trailing comma
    #12 5.941               });
    #12 5.941      ----------------------------- Actual: Around Line 66 -----------------------------
    #12 5.941                   x.ClientId,
    #12 5.941                   x.ClientSecret   <-- Missing trailing comma
    #12 5.941               });
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions