32 lines
592 B
YAML
32 lines
592 B
YAML
name: .NET
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: 5.0.x
|
|
|
|
- name: Restore Project
|
|
run: dotnet restore
|
|
|
|
- name: Build Project
|
|
run: dotnet build --no-restore --configuration Release
|
|
|
|
- name: Test Project
|
|
run: dotnet test --no-build --verbosity normal --configuration Release
|