Skip to content

Document .NET Aspire support #6538

Document .NET Aspire support

Document .NET Aspire support #6538

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: Install .NET Aspire workload
run: |
dotnet workload update
dotnet workload install aspire
- 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: Install .NET Aspire workload
run: |
dotnet workload update
dotnet workload install aspire
- 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