-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathcheck.sh
More file actions
executable file
Β·47 lines (38 loc) Β· 1.19 KB
/
Copy pathcheck.sh
File metadata and controls
executable file
Β·47 lines (38 loc) Β· 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
# Check script for PR submission
# Validates dependencies, merged manifest, ProGuard/R8 rules, module rules, code formatting, lint.
# Exit immediately if any command fails
set -e
echo "Starting check validations..."
echo ""
# Verify dependency changes
echo "π [1/6] Checking dependency guard..."
./gradlew dependencyGuard
echo "β Dependency guard check passed"
echo ""
# Verify merged manifest changes
echo "π [2/6] Checking manifest shield..."
./gradlew manifestShield
echo "β Manifest shield check passed"
echo ""
# Verify ProGuard/R8 rule changes
echo "π [3/6] Checking proguard shield..."
./gradlew proguardShieldFast
echo "β ProGuard shield check passed"
echo ""
# Verify module structure rules against the baseline
echo "π [4/6] Checking module rules..."
./gradlew moduleRules
echo "β Module rules check passed"
echo ""
# Verify code formatting
echo "π [5/6] Checking code formatting..."
./gradlew spotlessCheck --init-script gradle/init.gradle.kts
echo "β Code formatting check passed"
echo ""
# Static analysis and lint checks
echo "π [6/6] Running lint checks..."
./gradlew lintDebug
echo "β Lint check passed"
echo ""
echo "β
All checks passed successfully!"