Skip to content

Azure Architecture guidance #4408

Azure Architecture guidance

Azure Architecture guidance #4408

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@v3
- name: Setup .NET SDK
uses: actions/[email protected]
with:
dotnet-version: 7.0.x
- name: Check docstool
run: |
curl https://www.myget.org/F/particular/api/v3/flatcontainer/particular.docstool/index.json >> docstool-versions.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-versions.json') }}
- name: Install docstool
if: steps.cache-docstool.outputs.cache-hit != 'true'
run: dotnet tool install Particular.DocsTool --global --add-source=https://www.myget.org/F/particular/api/v3/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@v3
- name: Setup .NET SDK
uses: actions/[email protected]
with:
dotnet-version: 7.0.x
- name: Run integrity tests
run: dotnet test tests/IntegrityTests/IntegrityTests.csproj --configuration Release
build-projects:
name: Build samples & snippets
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET SDK
uses: actions/[email protected]
with:
dotnet-version: 7.0.x
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Build affected samples & snippets
run: pwsh.exe -NoLogo -NonInteractive -File .\tools\build-samples-and-snippets.ps1