Skip to content

Add a custom gh action to check for question files ordering #419

Add a custom gh action to check for question files ordering

Add a custom gh action to check for question files ordering #419

Workflow file for this run

name: PR Checks
on:
pull_request:
branches: [ master ]
jobs:
check-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Link Checker
uses: lycheeverse/[email protected]
with:
args: --verbose --no-progress './**/*.md' './**/*.html' --exclude-all-private --exclude 'file:///*'
fail: true
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
spell-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: streetsidesoftware/cspell-action@v6
with:
files: 'content/**/*.md'
config: 'cspell.json'
verbose: true
check-questions:
runs-on: ubuntu-latest
strategy:
matrix:
question-type: ['actions', 'admin', 'advanced_security', 'copilot', 'foundations']
steps:
- uses: actions/checkout@v4
- name: Check for missing question files
uses: ./.github/actions/check-missing-questions
with:
questions-path: 'content/questions/${{ matrix.question-type }}'