Legacy Docs Review #6824
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |