Files
howtos/.gitea/workflows/ci.yml
user 53aa4ef1fc
Some checks failed
ci / lint (push) Failing after 12s
ci / link-check (push) Successful in 18s
fix: use container: directive instead of podman run on host
Match s5p CI pattern — run jobs inside containers managed by the
runner rather than invoking podman directly on the host. Avoids
rootless namespace permission issues.
2026-02-22 07:37:19 +01:00

31 lines
851 B
YAML

name: ci
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
lint:
runs-on: linux
container: docker.io/davidanson/markdownlint-cli2:v0.17.2
steps:
- run: apk add --no-cache git
- run: |
git clone --depth 1 \
-c "http.extraHeader=Authorization: token ${{ github.token }}" \
"${{ github.server_url }}/${{ github.repository }}.git" .
- run: markdownlint-cli2 "**/*.md"
link-check:
runs-on: linux
container: python:3.12-slim
steps:
- run: apt-get update -qq && apt-get install -y -qq git > /dev/null
- run: |
git clone --depth 1 \
-c "http.extraHeader=Authorization: token ${{ github.token }}" \
"${{ github.server_url }}/${{ github.repository }}.git" .
- run: python3 scripts/check-links.py