2021-08-09 17:15:32 +05:00
|
|
|
name: .NET
|
2021-08-09 15:37:25 +05:00
|
|
|
|
2021-08-09 15:07:41 +05:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
2021-08-09 17:21:14 +05:00
|
|
|
test:
|
|
|
|
name: Test
|
2021-08-09 15:12:38 +05:00
|
|
|
runs-on: windows-latest
|
2021-08-09 15:07:41 +05:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2021-08-09 15:24:03 +05:00
|
|
|
- name: Setup .NET
|
2021-08-09 15:07:41 +05:00
|
|
|
uses: actions/setup-dotnet@v1
|
|
|
|
with:
|
|
|
|
dotnet-version: 5.0.x
|
|
|
|
|
2021-08-09 15:24:03 +05:00
|
|
|
- name: Restore Project
|
|
|
|
run: dotnet restore
|
|
|
|
|
|
|
|
- name: Build Project
|
2021-08-09 16:52:48 +05:00
|
|
|
run: dotnet build --no-restore --configuration Release
|
2021-08-09 15:24:03 +05:00
|
|
|
|
|
|
|
- name: Test Project
|
2021-08-09 16:52:48 +05:00
|
|
|
run: dotnet test --no-build --verbosity normal --configuration Release
|