Add dotnet test GitHub Action
This commit is contained in:
parent
a366328472
commit
f21fd6d8f3
1 changed files with 24 additions and 0 deletions
24
.github/workflows/dotnet-test.yml
vendored
Normal file
24
.github/workflows/dotnet-test.yml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
name: dotnet test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
branches: [ "master" ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Setup .NET
|
||||||
|
uses: actions/setup-dotnet@v4
|
||||||
|
with:
|
||||||
|
dotnet-version: 9.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
|
||||||
Loading…
Reference in a new issue