Skip to content
Merged
Changes from all commits
Commits
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
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ jobs:
- name: Restore dependencies
run: dotnet restore EasySourceGenerators.sln

- name: Build
run: dotnet build EasySourceGenerators.sln --no-restore

- name: Test
run: dotnet test EasySourceGenerators.sln --no-restore --verbosity normal --collect:"XPlat Code Coverage" --logger "trx;LogFilePrefix=test-results" --results-directory ./coverage
run: dotnet test EasySourceGenerators.sln --no-build --verbosity normal --collect:"XPlat Code Coverage" --logger "trx;LogFilePrefix=test-results" --results-directory ./coverage
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dotnet test will still run an implicit restore unless --no-restore is also specified. Since there’s already a dedicated restore step, consider using --no-build --no-restore on the test command to avoid redundant restore work.

Suggested change
run: dotnet test EasySourceGenerators.sln --no-build --verbosity normal --collect:"XPlat Code Coverage" --logger "trx;LogFilePrefix=test-results" --results-directory ./coverage
run: dotnet test EasySourceGenerators.sln --no-build --no-restore --verbosity normal --collect:"XPlat Code Coverage" --logger "trx;LogFilePrefix=test-results" --results-directory ./coverage

Copilot uses AI. Check for mistakes.

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
Expand Down
Loading