-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (37 loc) · 967 Bytes
/
prbuilds.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
name: PR Builds
on:
pull_request:
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
ContinuousIntegrationBuild: true
BuildType: dev
jobs:
build:
name: Build & Test
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Setup Dotnet for use with actions
uses: actions/setup-dotnet@v1
- name: Test
run: dotnet test -c Release -p:EnableCoverage=true
- name: Upload Code Coverage
uses: codecov/codecov-action@v2
with:
files: out/coverage/**/*.opencover.xml
if: ${{ always() }}
- name: Upload TestResults
uses: actions/upload-artifact@v2
with:
name: TestResults & Coverage
path: |
out/coverage/
out/testresults/*.trx
if: ${{ always() }}
- name: Pack
run: dotnet pack -c Release
- name: Upload Packages
uses: actions/upload-artifact@v2
with:
name: packages
path: out/packages/*.nupkg