-
Notifications
You must be signed in to change notification settings - Fork 320
44 lines (40 loc) · 1.26 KB
/
apidoctor.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
name: API Doctor validation
on:
workflow_dispatch
# pull_request:
# branches:
# - main
# - live
# paths:
# - api-reference/**
permissions:
contents: read
env:
APIDOCTOR_VERSION: 1.2.2312.152
jobs:
validate-docs:
name: Validate reference docs
# Must be Windows because NuGet-published ApiDoctor
# is Windows only.
runs-on: windows-latest
steps:
# Also required by Windows
- run: git config --global core.longpaths true
- name: Checkout docs repo
uses: actions/checkout@v4.1.3
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Install NuGet
uses: NuGet/setup-nuget@v2.0.0
- name: Install ApiDoctor from NuGet
run: nuget install ApiDoctor -Version $Env:APIDOCTOR_VERSION -OutputDirectory ./nuget -NonInteractive -DisableParallelProcessing
- name: Validate v1.0 docs
run: |
$apidoc = ".\nuget\ApiDoctor." + $Env:APIDOCTOR_VERSION + "\tools\apidoc.exe"
& $apidoc check-all --path .\api-reference\v1.0 --ignore-warnings
- name: Validate beta docs
run: |
$apidoc = ".\nuget\ApiDoctor." + $Env:APIDOCTOR_VERSION + "\tools\apidoc.exe"
& $apidoc check-all --path .\api-reference\beta --ignore-warnings