-
-
Notifications
You must be signed in to change notification settings - Fork 22
36 lines (28 loc) · 700 Bytes
/
dotnet-desktop.yml
File metadata and controls
36 lines (28 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: build and test
on:
pull_request:
branches: [ master ]
paths:
- '**.cs'
- '**.csproj'
push:
branches:
- master
workflow_dispatch:
jobs:
build-and-test:
name: build-and-test-${{matrix.os}}
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build solution
run: dotnet build --no-restore --configuration Release
- name: Run tests
run: dotnet test --no-build --verbosity normal --configuration Release