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.
39 lines
856 B
YAML
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
|