-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.1 KB
/
pull-request-build.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
name: Pull Request Build and Test Library
on:
pull_request:
branches: [ main ]
# Allow manual run
workflow_dispatch:
jobs:
BuildAndTest:
strategy:
matrix:
options:
- os: ubuntu-latest
dotnetversion: 6.0.x
- os: ubuntu-18.04
dotnetversion: 6.0.x
- os: macos-latest
dotnetversion: 6.0.x
- os: windows-latest
dotnetversion: 6.0.x
runs-on: ${{matrix.options.os}}
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{matrix.options.dotnetversion}}
include-prerelease: false
- name: Run Unit Tests
uses: b3b00/coverlet-action@1.1.9
with:
testProject: './Tests/Coderanger.ImageInfo.Tests.csproj'
outputFormat: 'opencover'
output: TestResults/coverage.opencover.xml
threshold: 70
- name: Dotnet Release Build for Test
run: dotnet build --verbosity normal --configuration Release