27 lines
538 B
YAML
27 lines
538 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
|