Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 25 additions & 20 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,35 @@
on: [workflow_call]

name: "Check"

permissions: {}

jobs:
shellcheck:
name: shellcheck
runs-on: ubuntu-latest
steps:
-
name: Checkout code
uses: actions/checkout@v7
- parallel:
-
name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS: -x --source-path=src -e SC2064 -e SC2114 -e SC2129 -e SC2034 -e SC1087 -e SC2317 -e SC2046
-
name: Lint Dockerfile
uses: hadolint/hadolint-action@v3.3.0
with:
dockerfile: Dockerfile
ignore: DL3008,DL3018,DL3020,DL3029,DL3059,DL4006,DL4001,SC2114,DL3006,DL3027,DL3003,SC2016
failure-threshold: warning
-
name: Validate JSON and YML files
uses: GrantBirki/json-yaml-validate@v5.0.0
with:
yaml_exclude_regex: ".*\\kubernetes\\.yml$"
name: Checkout code
uses: actions/checkout@v7
- parallel:
-
name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS: >-
-x
--source-path=src
-e SC2129
-e SC2034
-e SC2317
-
name: Lint Dockerfile
uses: hadolint/hadolint-action@v3.3.0
with:
dockerfile: Dockerfile
ignore: DL3008,DL3018,DL3020,DL3029,DL3059,DL4006,DL4001,DL3006,DL3003,SC2016
failure-threshold: warning
-
name: Validate JSON and YML files
uses: GrantBirki/json-yaml-validate@v5.0.0
3 changes: 2 additions & 1 deletion src/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -362,13 +362,14 @@ supercronic -quiet -no-reap /docker.cron &
CRON_PID="$!"
wait_process_alive "$CRON_PID" "supercronic" 1 || :

# Trap helper.
_trap() {
local func="$1"; shift
local sig
TRAP_PID="$BASHPID"

for sig; do
# Capture the local callback and signal while registering the trap.
# shellcheck disable=SC2064
trap "$func $sig" "$sig"
done

Expand Down