24 lines
489 B
YAML
24 lines
489 B
YAML
name: dotnet test
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v5
|
|
with:
|
|
dotnet-version: 10.0.x
|
|
- name: Restore dependencies
|
|
run: dotnet restore server
|
|
- name: Build
|
|
run: dotnet build --no-restore server
|
|
- name: Test
|
|
run: dotnet test --no-build --verbosity normal server
|