Skip to content

Commit

Permalink
feat(unit-tests): increase code coverage
Browse files Browse the repository at this point in the history
This commit adds:
- Pull request template
- Unit tests for `DbCommandInterceptorProcessor` class
- Unit tests for `SecondLevelCacheInterceptor` class
- The task is to run unit tests after the build
  • Loading branch information
dmitrii-kiselev committed Sep 29, 2024
1 parent b84c74d commit 3814e28
Show file tree
Hide file tree
Showing 4 changed files with 2,899 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# PR Checklist

Please check if your PR fulfills the following requirements:

- [ ] The commit message follows [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)
- [ ] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)

## PR Type

What kind of change does this PR introduce?

<!-- Please check the one that applies to this PR using "x". -->

- [ ] Bugfix
- [ ] Feature
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Other... Please describe:

## What is the current behavior?

<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->

Closes #

## What is the new behavior?

## Does this PR introduce a breaking change?

- [ ] Yes
- [ ] No

<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->

## Other information
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
- name: Build EFCoreSecondLevelCacheInterceptor lib
run: dotnet build ./src/EFCoreSecondLevelCacheInterceptor/EFCoreSecondLevelCacheInterceptor.csproj --configuration Release

- name: Run EFCoreSecondLevelCacheInterceptor lib unit tests
run: dotnet test ./src/Tests/EFCoreSecondLevelCacheInterceptor.UnitTests/EFCoreSecondLevelCacheInterceptor.UnitTests.csproj --no-restore --logger "console;verbosity=detailed"

- name: Push Package to NuGet.org
if: github.event_name == 'push'
run: dotnet nuget push **\*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
Loading

0 comments on commit 3814e28

Please sign in to comment.