-
Notifications
You must be signed in to change notification settings - Fork 42
45 lines (36 loc) · 827 Bytes
/
pr.yaml
File metadata and controls
45 lines (36 loc) · 827 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
37
38
39
40
41
42
43
44
45
name: Pull Request
on:
pull_request:
branches:
- main
jobs:
build_and_test:
name: Build and test
strategy:
matrix:
os: [ 'windows-latest', 'ubuntu-latest', 'macos-latest' ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Setup .NET SDK 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.x'
# - name: Add MSBuild to PATH
# uses: microsoft/setup-msbuild@v1.0.0
- name: Restore NuGet packages
shell: pwsh
run: |
dir
dotnet restore .
- name: Build solution
shell: pwsh
run: |
dir
dotnet build . -c Debug -v minimal
- name: Test solution
shell: pwsh
run: |
dir
dotnet test . -c Debug