-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (38 loc) · 1.32 KB
/
pull_requests.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
39
40
41
42
43
44
45
46
47
48
49
# ======================================================================
# PULL Request: Build / Test
# ======================================================================
name: 'Pull Request Builder'
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
env:
SOLUTION_PATH: './ThingsLibrary.Frameworks.sln'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET 9.0.x
uses: actions/setup-dotnet@v3
with:
# Semantic version range syntax or exact version of a dotnet version
dotnet-version: '9.0.x'
# You can test your matrix by printing the current dotnet version
- name: Display dotnet version
run: dotnet --version
- name: List NuGet Package Sources
run: dotnet nuget list source
- name: Restore Files
run: dotnet restore ${{env.SOLUTION_PATH}}
- name: Build
run: dotnet build ${{env.SOLUTION_PATH}} --configuration Release --no-restore
- name: Test
run: dotnet test ${{env.SOLUTION_PATH}} -c Release --nologo --no-build --results-directory "./Artifacts/Test/0.0.0" /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
- name: Tree List
run: tree -a ./Artifacts