This repository was archived by the owner on Feb 22, 2026. It is now read-only.
forked from xunit/xunit
-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (67 loc) · 2.32 KB
/
pull-request.yaml
File metadata and controls
77 lines (67 loc) · 2.32 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: "xUnit.net PR Build (main)"
on:
- pull_request
- workflow_dispatch
jobs:
build:
name: "Build"
runs-on: ${{ matrix.os }}
env:
DOTNET_CLI_WORKLOAD_UPDATE_NOTIFY_DISABLE: true
DOTNET_NOLOGO: true
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macOS-latest]
steps:
- name: Clone source
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
if: matrix.os == 'windows-latest'
- name: Install .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x
- name: Get .NET information
run: dotnet --info
continue-on-error: true
- name: Install Mono (Ubuntu)
run: >
sudo apt-get -y install apt-transport-https dirmngr gnupg ca-certificates software-properties-common &&
curl 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3fa7e0328081bff6a14da29aa6a19b38d3d831ef' | sudo tee /etc/apt/trusted.gpg.d/mono-official-stable.asc &&
sudo apt-add-repository -y --no-update 'deb https://download.mono-project.com/repo/ubuntu stable-focal main' &&
sudo apt-get update &&
sudo apt-get -y install mono-complete mono-vbnc
if: ${{ matrix.os == 'ubuntu-latest' }}
- name: Install Mono (macOS)
run: brew install mono
if: ${{ matrix.os == 'macOS-latest' }}
- name: Get Mono information
run: mono --version
if: ${{ matrix.os != 'windows-latest' }}
- name: "Build target: BuildAll"
run: dotnet run --project tools/builder --no-launch-profile -- BuildAll --timing --no-x86
- name: "Upload artifact: test-${{ matrix.os }}"
uses: actions/upload-artifact@v4
with:
name: test-${{ matrix.os }}
path: artifacts/test
compression-level: 9
if: always()
- name: Publish Test Report
uses: ctrf-io/github-test-reporter@v1
with:
report-path: './artifacts/test/*.ctrf'
github-report: true
pull-request: true
update-comment: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: always()