rd13_copilot_setup/.github/workflows/ci.yml
Conrad Schulz deca872ab2 ci(wp11): shellcheck + fish -n + bootstrap self-test
Neuer GitHub-Actions-Workflow .github/workflows/ci.yml: shellcheck fuer alle POSIX/bash-Skripte und git-Hooks, 'fish -n' fuer alle fish-Skripte, sowie scripts/selftest.sh (Bootstrap-Dry-Run sh+fish gegen isoliertes Fake-HOME mit Assertions). copilot-bootstrap.sh propagiert jetzt ebenfalls *:Zone.Identifier (Paritaet zur fish-Variante). shellcheck-Direktiven fuer bewusste Muster (SC2016 literaler Alias, SC1090 dynamische Config, SC2043 erweiterbare Hook-Schleife). Lokal verifiziert: shellcheck exit 0, selftest beide Varianten PASS.
2026-06-10 10:48:27 +02:00

39 lines
856 B
YAML

name: CI
on:
push:
branches: [master, main]
pull_request:
permissions:
contents: read
jobs:
shell:
name: Lint & self-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: ShellCheck (POSIX/bash scripts + git hooks)
run: |
shellcheck --version
shellcheck scripts/*.sh \
git-templates/hooks/pre-commit \
git-templates/hooks/post-merge \
git-templates/hooks/post-commit
- name: Install fish
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq fish
- name: Fish syntax check
run: |
for f in scripts/*.fish; do
echo "fish -n $f"
fish -n "$f"
done
- name: Self-test (bootstrap dry-run, sh + fish)
run: sh scripts/selftest.sh