-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (31 loc) · 920 Bytes
/
pr.yml
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
name: Pull Request Validation
env:
BinDir: ./src/HawDict/bin
SolutionFile: ./src/HawDict.sln
on:
pull_request:
branches:
- main
jobs:
pr_build_and_test:
name: PR Build and Test
runs-on: windows-latest
strategy:
matrix:
configuration: [Debug, Release]
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
- name: Checkout
uses: actions/checkout@v4
- name: Build Solution
run: dotnet build --configuration ${{ matrix.configuration }} ${{ env.SolutionFile }}
- name: Test Solution
run: dotnet test --configuration ${{ matrix.configuration }} --no-build ${{ env.SolutionFile }}
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.configuration }}Binaries
path: ${{ env.BinDir }}/${{ matrix.configuration }}/net5.0