Skip to content

Add build step to CI workflow#100

Merged
dex3r merged 2 commits intofeature/metehod_templatefrom
copilot/add-ci-build-step
Apr 2, 2026
Merged

Add build step to CI workflow#100
dex3r merged 2 commits intofeature/metehod_templatefrom
copilot/add-ci-build-step

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 2, 2026

CI was going straight from dotnet restore to dotnet test, which implicitly builds only test-reachable projects. An explicit build step ensures the entire solution compiles.

  • Add dotnet build EasySourceGenerators.sln --no-restore step between restore and test
  • Switch test step from --no-restore to --no-build to avoid redundant recompilation

Copilot AI changed the title [WIP] Add step to ci.yml to ensure successful solution build Add build step to CI workflow Apr 2, 2026
Copilot finished work on behalf of dex3r April 2, 2026 11:44
Copilot AI requested a review from dex3r April 2, 2026 11:44
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 2, 2026

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

@dex3r dex3r marked this pull request as ready for review April 2, 2026 12:35
Copilot AI review requested due to automatic review settings April 2, 2026 12:35
@dex3r dex3r merged commit 8f4f4e1 into feature/metehod_template Apr 2, 2026
1 check failed
@dex3r dex3r deleted the copilot/add-ci-build-step branch April 2, 2026 12:36
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an explicit build step to the CI pipeline so the full solution is compiled before tests run, rather than relying on test-driven builds.

Changes:

  • Insert dotnet build EasySourceGenerators.sln --no-restore between restore and test steps.
  • Switch dotnet test from --no-restore to --no-build to avoid rebuilding during test execution.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add step to ci.yml to make sure the entire solution builds successfully

3 participants