Skip to content

.NET Build Test (manual) #4

.NET Build Test (manual)

.NET Build Test (manual) #4

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET Build Test
on:
workflow_dispatch:
inputs:
target_framework:
type: choice
required: true
options:
- "net6.0"
- "net7.0"
- "net8.0"
- "net9.0"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
9.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -f ${{ github.event.inputs.target_framework }}
- name: Test
run: dotnet test --no-build --verbosity normal -f ${{ github.event.inputs.target_framework }}