Skip to content

ci: simplify workflow and job names #2460

ci: simplify workflow and job names

ci: simplify workflow and job names #2460

Workflow file for this run

name: lint
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
jobs:
mdlint:
name: markdown
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: xt0rted/markdownlint-problem-matcher@v3
- run: npm install -g markdownlint-cli
# disabled checks:
# MD013/line-length
# MD024/no-duplicate-heading
# MD033/no-inline-html
# MD034/no-bare-urls
# MD036/no-emphasis-as-heading
# MD041/first-line-heading/first-line-h1
# MD059/descriptive-link-text
# MD060/table-column-style
- run: |
markdownlint --version
# List files to lint
ls *.md **/*.md
markdownlint \
--disable MD013 MD024 MD029 MD033 MD034 MD036 MD041 MD059 MD060 \
--ignore '**/CHANGELOG.md' \
-- *.md **/*.md
zshlint:
name: zsh
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
task: [noexec, zcompile]
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-python@v6
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install --yes zsh
- name: "run lint (${{ matrix.task }})"
run: |
case "${{ matrix.task }}" in
noexec)
find . -name '*.zsh' -type f -print0 \
| xargs -0 -n1 -P4 zsh -n
;;
zcompile)
find . -name '*.zsh' -type f \
-exec zsh -fc "zcompile {}" \;
;;
*)
echo "ERROR: unknown task ${{ matrix.task }}" >&2
exit 1
;;
esac