-
-
Notifications
You must be signed in to change notification settings - Fork 135
37 lines (27 loc) · 797 Bytes
/
pr-check.yml
File metadata and controls
37 lines (27 loc) · 797 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
# Based on workflow from https://github.com/krafs/LevelUp
name: Validate Pull Request
env:
SLN_PATH: Source/
on:
pull_request
jobs:
builds:
name: Builds
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.x
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
- name: Restore dependencies
run: dotnet restore ${{ env.SLN_PATH }}
- name: Build debug
run: dotnet build ${{ env.SLN_PATH }} --no-restore
- name: Build release
run: dotnet build ${{ env.SLN_PATH }} --configuration Release --no-restore
- name: Run tests
run: dotnet test ${{ env.SLN_PATH }} --no-restore