File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed
Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Proof Scripts
2+
3+ on :
4+ push :
5+ branches : [main]
6+ paths :
7+ - ' proof/**'
8+ pull_request :
9+ paths :
10+ - ' proof/**'
11+ workflow_dispatch :
12+
13+ permissions :
14+ contents : read
15+
16+ jobs :
17+ proof :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - uses : actions/checkout@v6
21+
22+ - uses : actions/setup-java@v5
23+ with :
24+ distribution : ' temurin'
25+ java-version : ' 25'
26+
27+ - uses : jbangdev/setup-jbang@main
28+
29+ - name : Run all proof scripts
30+ shell : bash
31+ run : |
32+ passed=0
33+ failed=0
34+ failures=()
35+
36+ while IFS= read -r -d '' script; do
37+ name="${script#proof/}"
38+ if jbang "$script" > /dev/null 2>&1; then
39+ echo "✅ $name"
40+ ((passed++))
41+ else
42+ echo "❌ $name"
43+ failures+=("$name")
44+ ((failed++))
45+ fi
46+ done < <(find proof -name '*.java' -print0 | sort -z)
47+
48+ echo ""
49+ echo "Results: $passed passed, $failed failed out of $((passed + failed)) scripts"
50+
51+ if [ ${#failures[@]} -gt 0 ]; then
52+ echo ""
53+ echo "Failed scripts:"
54+ for f in "${failures[@]}"; do
55+ echo " - $f"
56+ done
57+ exit 1
58+ fi
You can’t perform that action at this time.
0 commit comments