mirror of
https://github.com/versity/versitygw.git
synced 2026-07-02 16:54:25 +00:00
f24377b1e9
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> test: README updates, speed up some file integrity checks
28 lines
637 B
YAML
28 lines
637 B
YAML
name: shellcheck
|
|
permissions: {}
|
|
on: pull_request
|
|
jobs:
|
|
|
|
build:
|
|
name: Run shellcheck
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Check out code
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Run checks
|
|
run: |
|
|
shellcheck --version
|
|
overall_rc=0
|
|
while IFS= read -r -d '' f; do
|
|
rc=0
|
|
echo "CHECKING $f"
|
|
shellcheck -S error -e SC1091 "$f" || rc=$?
|
|
echo "exit=$rc file=$f"
|
|
if [ "$rc" -ne 0 ]; then
|
|
overall_rc="$rc"
|
|
fi
|
|
done < <(find . \( -path './tests/*.sh' -o -path './tests/*/*.sh' \) -print0)
|
|
exit "$overall_rc"
|