lightweight-server/.github/workflows/bash-syntax.yml
2026-07-15 14:38:12 +07:00

30 lines
642 B
YAML

name: Bash syntax
on:
push:
branches: ['**']
pull_request:
permissions:
contents: read
jobs:
syntax:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Check every installer
run: |
set -e
while IFS= read -r -d '' script; do
echo "Checking ${script}"
bash -n "${script}"
done < <(find . -type f -name '*.sh' -print0)
- name: Test step 1 selections
run: bash tests/test-step1-selection.sh
- name: Test step 3 SSH configuration parsing
run: bash tests/test-step3-sshd-parsing.sh