Skip to content

Merge pull request #100 from LeftTwixWand/dependabot/nuget/Microsoft.… #387

Merge pull request #100 from LeftTwixWand/dependabot/nuget/Microsoft.…

Merge pull request #100 from LeftTwixWand/dependabot/nuget/Microsoft.… #387

Workflow file for this run

name: CI Build
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
env:
BuildConfiguration: Release
jobs:
build:
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x64
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Setup NuGet.exe for use with actions
uses: NuGet/setup-nuget@v2
- name: Cache NuGet packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/Directory.Packages.props') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore Nuget packages
run: nuget restore Inventory.sln
- name: Build
run: msbuild Inventory.sln
-verbosity:normal
-property:Configuration=${{env.BuildConfiguration}}
- name: Run tests
run: dotnet test