File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
926echo "Checking code formatting..."
1027bin/format --check
@@ -21,3 +38,10 @@ mix credo --strict
2138
2239echo "Checking examples workflow is up-to-date..."
2340mix 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
You can’t perform that action at this time.
0 commit comments