Skip to content

chore(deps-actions): bump NuGet/setup-nuget from 2.0.1 to 2.0.2 #34

chore(deps-actions): bump NuGet/setup-nuget from 2.0.1 to 2.0.2

chore(deps-actions): bump NuGet/setup-nuget from 2.0.1 to 2.0.2 #34

name: CI - Build MongoDB EF Core Console App
on:
workflow_dispatch: # Allows manual trigger
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
# Setup .NET SDK for .NET Core project
- name: Setup .NET Core
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.x'
# Restore & Build .NET Core project
- name: Restore & Build .NET Core Project
run: |
dotnet restore MongoEFCoreConsoleApp/MongoEFCoreConsoleApp.csproj
dotnet build MongoEFCoreConsoleApp/MongoEFCoreConsoleApp.csproj -c Debug
dotnet test MongoEFCoreConsoleApp/MongoEFCoreConsoleApp.csproj -c Debug --no-build --no-restore