Skip to content

updates

updates #5

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
checks:
name: Docs and shell checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install linters
run: |
sudo apt-get update
sudo apt-get install -y shellcheck shfmt
npm install -g markdownlint-cli2
- name: ShellCheck
shell: bash
run: |
mapfile -t shell_files < <(find . -path ./.git -prune -o -name "*.sh" -type f -print)
if [ "${#shell_files[@]}" -gt 0 ]; then
shellcheck "${shell_files[@]}"
else
echo "No shell files found."
fi
- name: shfmt
shell: bash
run: |
mapfile -t shell_files < <(find . -path ./.git -prune -o -name "*.sh" -type f -print)
if [ "${#shell_files[@]}" -gt 0 ]; then
shfmt -d "${shell_files[@]}"
else
echo "No shell files found."
fi
- name: Markdownlint
run: markdownlint-cli2 "README.md" "docs/**/*.md"