Skip to content

Create dotnet.yml

Create dotnet.yml #4

Workflow file for this run

name: .NET
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: |
if [ $RUNNER_OS == "Windows" ]; then
dotnet build --no-restore
else
dotnet build --no-restore -p:EnableWindowsTargeting=false
fi
- name: Test
run: dotnet test --no-build --verbosity normal