29 lines
645 B
YAML
29 lines
645 B
YAML
# Build and test the C# solution (server + tests). Targets repo root NeonSprawl.sln.
|
|
name: .NET
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 10.0.x
|
|
|
|
- name: Restore
|
|
run: dotnet restore NeonSprawl.sln
|
|
|
|
- name: Build
|
|
run: dotnet build NeonSprawl.sln --no-restore --configuration Release
|
|
|
|
- name: Test
|
|
run: dotnet test NeonSprawl.sln --no-build --configuration Release --verbosity normal
|