forked from xunit/xunit
-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (40 loc) · 1.13 KB
/
pull-request.yaml
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
name: xUnit.net PR Build
on:
- pull_request
- workflow_dispatch
jobs:
build:
name: "Build for PR"
runs-on: ${{ matrix.os }}
env:
DOTNET_NOLOGO: true
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-18.04, macOS-latest]
steps:
- name: Clone source
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Add MSBuild to PATH (Windows)
uses: microsoft/[email protected]
if: matrix.os == 'windows-latest'
- name: Install .NET Core SDK 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: Install .NET SDK 5.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Get .NET information
run: dotnet --info
- name: "Build target: PR"
run: dotnet run --project tools/builder --no-launch-profile -- PR --timing
- name: "Upload artifact: test-${{ matrix.os }}"
uses: actions/upload-artifact@v2
with:
name: test-${{ matrix.os }}
path: artifacts/test
if: always()