Skip to content

build: Add Lock file support for NuGet deps #10

build: Add Lock file support for NuGet deps

build: Add Lock file support for NuGet deps #10

Workflow file for this run

name: .NET Build & Test
on:
- push
- pull_request
- workflow_call
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0
- uses: dotnet/nbgv@master
id: nbgv
- name: Restore dependencies
run: dotnet restore --locked-mode
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal