Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve local smoke tests and introduce dev containers support #128

Merged
merged 12 commits into from
Aug 24, 2023

Conversation

christianhelle
Copy link
Owner

No description provided.

christianhelle and others added 12 commits August 24, 2023 21:15
The Refit.HttpClientFactory package was updated from version 6.3.2 to version 7.0.0 in MinimalApi.csproj. This was done to leverage the improvements and bug fixes in the latest version of the library.
This commit addresses the redundant configuration that was spread across all .csproj files for each target framework. Common settings such as OutputType, LangVersion, shared source files, and package references have been consolidated into a Directory.Build.props file, which automatically applies these settings to all projects in the directory. Also, Refit has been upgraded from version 6.3.2 to version 7.0.0. This approach will reduce maintenance overhead, ensure consistency across projects, and simplify potential future upgrades.
A new line was added to the PropertyGroup section of the Directory.Build.props file in the ConsoleApp project, specifically setting the EmitCompilerGeneratedFiles property to true. This change will allow the compiler to output additional files that are useful for debugging and understanding how the compiler interprets the code.
…d build one spec at a time

A new function, GenerateAndBuild, was added to eliminate repetitive code blocks in the script, improving readability and maintainability. This function handles the generation and building of output paths for different formats and namespaces. The modifications also include treating warnings as errors in the build process to ensure high code quality.
An await Task.Delay(0) statement was added to the main method in Program.cs. This is to ensure proper asynchronous execution of the method, preventing potential deadlocks or delays in the future, improving performance and stability. Task.Delay(0) means 'yield' and allows other tasks to execute.
This change introduces a `-p:TreatWarningsAsErrors=true` flag to the `dotnet build` command in various .NET project's GitHub workflows. The goal is to enforce a higher code quality by turning all warnings into errors, thus causing the build to fail if any warnings occur. This will help catch potential issues earlier, improving the stability and reliability of the codebase.
The paths-ignore section of the smoke tests workflow in GitHub Actions has been updated to only ignore changes outside the 'src' directory. Previously, these tests were being triggered for any changes to .cs and .csproj files anywhere in the repo. This change ensures smoke tests run only when relevant source code is modified.
@christianhelle christianhelle added the enhancement New feature, bug fix, or request label Aug 24, 2023
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Aug 24, 2023

Codecov Report

Merging #128 (554806f) into main (6c25e93) will not change coverage.
Report is 1 commits behind head on main.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #128   +/-   ##
=======================================
  Coverage   98.29%   98.29%           
=======================================
  Files          32       32           
  Lines         997      997           
=======================================
  Hits          980      980           
  Misses          6        6           
  Partials       11       11           
Flag Coverage Δ
unittests 98.29% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@christianhelle christianhelle marked this pull request as ready for review August 24, 2023 22:22
@christianhelle christianhelle merged commit 55ae9dd into main Aug 24, 2023
@christianhelle christianhelle deleted the smoke-tests branch August 24, 2023 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature, bug fix, or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant