Skip to content

feat: Add .NET Build & Test and Publish NuGet packages workflows #1

feat: Add .NET Build & Test and Publish NuGet packages workflows

feat: Add .NET Build & Test and Publish NuGet packages workflows #1

Workflow file for this run

name: .NET Build & Test
permissions:
contents: read
on:
- push
- pull_request
- workflow_call
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'
- uses: dotnet/[email protected]
id: nbgv
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal