Skip to content

Enable Roslyn analysis - others - part 1 (#4741) #49

Enable Roslyn analysis - others - part 1 (#4741)

Enable Roslyn analysis - others - part 1 (#4741) #49

name: validate-documentation
on:
push:
branches: [ main ]
paths:
- '.github/workflows/validate-documentation.yml'
- '**.md'
- '.lycheeignore'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/validate-documentation.yml'
- '**.md'
- '.lycheeignore'
merge_group:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # tag: v6.0.1
- name: Restore lychee cache
uses: actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # tag: v5.0.1
id: cache-restore
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- name: Run markdown links checks
if: ${{ !contains(github.event.pull_request.labels.*.name, 'release PR') }}
uses: lycheeverse/lychee-action@a8c4c7cb88f0c7386610c35eb25108e448569cb0 # tag: v2.7.0
with:
fail: true
args: "--cache --max-cache-age 1d --threads 1 --max-concurrency 1 --verbose --retry-wait-time 5 --max-retries 3 --timeout 60 --no-progress './**/*.md' './**/*.html'"
- name: Run markdownlint
uses: streetsidesoftware/cspell-action@24fa8d3096a314ce263f39578744e9d9f8d80acf # tag: v8.1.2
with:
files: '**/*.md'
- name: Run cspell
uses: DavidAnson/markdownlint-cli2-action@07035fd053f7be764496c0f8d8f9f41f98305101 # tag: v22.0.0
with:
globs: '**/*.md;!.github/**;!lychee/out.md'
separator: ';'
- name: Save lychee cache
if: always()
uses: actions/cache/save@9255dc7a253b0ccc959486e2bca901246202afeb # tag: v5.0.1
with:
path: .lycheecache
key: ${{ steps.cache-restore.outputs.cache-primary-key }}