40 lines
971 B
YAML
40 lines
971 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: linux
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
git clone --depth 1 --branch "${{ github.ref_name }}" \
|
|
"${{ github.server_url }}/${{ github.repository }}.git" workspace
|
|
|
|
- name: Markdown lint
|
|
run: |
|
|
podman run --rm \
|
|
-v "$PWD/workspace:/work:Z" \
|
|
docker.io/davidanson/markdownlint-cli2:v0.17.2 \
|
|
"**/*.md"
|
|
|
|
link-check:
|
|
runs-on: linux
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
git clone --depth 1 --branch "${{ github.ref_name }}" \
|
|
"${{ github.server_url }}/${{ github.repository }}.git" workspace
|
|
|
|
- name: Check internal links
|
|
run: |
|
|
podman run --rm \
|
|
-v "$PWD/workspace:/work:Z" \
|
|
-w /work \
|
|
docker.io/library/python:3.12-slim \
|
|
python3 scripts/check-links.py
|