name: lint on: pull_request: push: branches: [main, v0.1] jobs: markdownlint: name: markdownlint (blocking) runs-on: ubuntu-latest container: node:20-bookworm steps: - uses: actions/checkout@v4 - name: Lint all markdown run: npx -y markdownlint-cli@0.41.0 --config .markdownlint.yaml '**/*.md' typos: name: typos spell-check (blocking) runs-on: ubuntu-latest container: node:20-bookworm steps: - uses: actions/checkout@v4 - name: Install typos (pinned v1.50.1) run: > curl -fsSL https://github.com/crate-ci/typos/releases/download/v1.50.1/typos-v1.50.1-x86_64-unknown-linux-musl.tar.gz | tar -xz - name: Run typos run: ./typos --config .typos.toml vale: name: vale prose (advisory) runs-on: ubuntu-latest container: node:20-bookworm continue-on-error: true steps: - uses: actions/checkout@v4 - name: Install vale (pinned v3.20.0) run: > curl -fsSL https://github.com/vale-cli/vale/releases/download/v3.20.0/vale_3.20.0_Linux_64-bit.tar.gz | tar -xz - name: Fetch styles and lint prose run: ./vale sync && ./vale --minAlertLevel=suggestion . lychee: name: lychee link-check (advisory) runs-on: ubuntu-latest container: node:20-bookworm continue-on-error: true steps: - uses: actions/checkout@v4 - name: Install lychee (pinned v0.20.0) run: > curl -fsSL https://github.com/lycheeverse/lychee/releases/download/v0.20.0/lychee-x86_64-unknown-linux-musl.tar.gz | tar -xz - name: Check links in content run: ./lychee --no-progress './grav/**/*.md' README.md docs/*.md