Skip to content

Commit 2963274

Browse files
committed
Add bin/check-image check to bin/audit
1 parent 0c7ebc0 commit 2963274

1 file changed

Lines changed: 25 additions & 1 deletion

File tree

bin/audit

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,24 @@ set -euo pipefail
44
# It checks for formatting issues, static code analysis, and code style consistency.
55
#
66
# Usage:
7-
# ./bin/audit # Run to audit your project.
7+
# ./bin/audit # Run to audit your project.
8+
# ./bin/audit --skip-check-image # Skip Docker image check (used by CI)
9+
10+
SKIP_CHECK_IMAGE=false
11+
12+
# Parse arguments
13+
for arg in "$@"; do
14+
case $arg in
15+
--skip-check-image)
16+
SKIP_CHECK_IMAGE=true
17+
shift
18+
;;
19+
*)
20+
echo "Unknown option: $arg"
21+
exit 1
22+
;;
23+
esac
24+
done
825

926
echo "Checking code formatting..."
1027
bin/format --check
@@ -21,3 +38,10 @@ mix credo --strict
2138

2239
echo "Checking examples workflow is up-to-date..."
2340
mix e2e.update_examples_workflow --check
41+
42+
if [ "$SKIP_CHECK_IMAGE" = false ]; then
43+
echo "Checking Docker image..."
44+
bin/check-image
45+
else
46+
echo "Skipping Docker image check..."
47+
fi

0 commit comments

Comments
 (0)