-
Notifications
You must be signed in to change notification settings - Fork 301
61 lines (61 loc) · 2.27 KB
/
validate-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
50
51
52
53
54
55
56
57
58
59
60
61
name: PullRequest
on: pull_request
env:
DOTNET_NOLOGO: true
DOTNET_ROLL_FORWARD: Major
jobs:
content-verification:
name: Content verification
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/[email protected]
with:
dotnet-version: 8.0.x
# Caching is done to limit data transfer on each PR, not to optimize CI speed
- name: Check docstool version for cache
run: |
curl --connect-timeout 5 --max-time 15 --silent --show-error https://s3.amazonaws.com/particular.downloads/Particular.DocsTool/version.json >> docstool-version.json
- name: Cache docstool
id: cache-docstool
uses: actions/[email protected]
with:
path: |
~/.dotnet/tools/docstool
~/.dotnet/tools/.store/particular.docstool
key: docstool-${{ hashFiles('docstool-version.json') }}
- name: Install docstool
if: steps.cache-docstool.outputs.cache-hit != 'true'
run: dotnet tool install Particular.DocsTool --global --add-source https://f.feedz.io/particular-software/packages/nuget/index.json
- name: Run docstool
run: docstool test --no-version-check
integrity-tests:
name: Integrity tests
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/[email protected]
with:
dotnet-version: 8.0.x
- name: Run integrity tests
run: dotnet test tests/IntegrityTests/IntegrityTests.csproj --configuration Release --logger "GitHubActions;report-warnings=false"
build-projects:
name: Build samples & snippets
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/[email protected]
with:
dotnet-version: 8.0.x
- name: Update .NET workloads # To be removed once the base GitHub image has the Aspire workload 8.2
run: dotnet workload update
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build affected samples & snippets
run: pwsh.exe -NoLogo -NonInteractive -File .\tools\build-samples-and-snippets.ps1