Skip to content

CI lint job uses git add -A and runs in parallel with build #92

@mircealungu

Description

@mircealungu

From review of PR #81.

Two issues in .github/workflows/dotnet.yml:

1. git add -A in the lint job

The lint job auto-commits formatting fixes, but uses git add -A which stages everything — including any files the build/format process might create accidentally. Should use specific globs like git add '*.cs'.

2. lint and build run in parallel

Since they're independent jobs, build may test stale code if lint pushes a formatting commit while build is already running. The build job should depend on lint:

build:
  needs: lint

This ensures build always tests the final state of the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions