Skip to content

Merge pull request #261 from VahidN/dependabot/nuget/tests-d66c3d5714 #427

Merge pull request #261 from VahidN/dependabot/nuget/tests-d66c3d5714

Merge pull request #261 from VahidN/dependabot/nuget/tests-d66c3d5714 #427

Workflow file for this run

name: .NET Core Build
on: [push, pull_request]
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- 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 --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