Create dotnet.yml

This commit is contained in:
Zony 2022-04-25 13:35:55 +08:00 committed by GitHub
parent e900a92f37
commit 893b1e7918
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

25
.github/workflows/dotnet.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: .NET
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal