Skip to content

Adding more guidance on job submissions #9

Adding more guidance on job submissions

Adding more guidance on job submissions #9

Workflow file for this run

name: ci
on: [push, pull_request]
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo apt-get update && sudo apt-get install -y shellcheck
- name: shellcheck (shell scripts, by shebang or .sh)
run: |
set -euo pipefail
mapfile -t files < <(
{ git ls-files '*.sh'
git ls-files | while read -r f; do
head -n1 "$f" | grep -qE '^#!.*(bash|/sh)' && echo "$f"
done
} | sort -u)
printf 'linting %d files\n' "${#files[@]}"
# --severity=error: green on the existing tree from day one; tighten
# to 'warning' after a lint-cleanup pass. SC1090/91: dynamic source.
shellcheck --severity=error -e SC1090,SC1091 "${files[@]}"
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: tests/run.sh