-
-
Notifications
You must be signed in to change notification settings - Fork 461
52 lines (42 loc) · 1.13 KB
/
docs-prs.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
name: Documentation PRs
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
node_version: 20.x
NUKE_TELEMETRY_OPTOUT: true
jobs:
run:
name: "linting, spell check and build"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Check out the code
- name: Lint Code Base
uses: docker://ghcr.io/igorshubovych/markdownlint-cli:latest
with:
args: "--disable MD009 -- docs/**/*.md"
- uses: actions/setup-node@v4
name: Install Node.js
with:
node-version: ${{ env.node_version }}
- run: npm install -g cspell
name: Install cSpell
- run: cspell --config ./docs/cSpell.json "docs/**/*.md"
name: run cSpell
- name: Install .NET 8.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Install .NET 9.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: 9.0.x
- name: Build docs
run: ./build.sh docs-build