-
Notifications
You must be signed in to change notification settings - Fork 20
58 lines (49 loc) · 1.26 KB
/
proof.yml
File metadata and controls
58 lines (49 loc) · 1.26 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
48
49
50
51
52
53
54
55
56
57
58
name: Proof Scripts
on:
push:
branches: [main]
paths:
- 'proof/**'
pull_request:
paths:
- 'proof/**'
workflow_dispatch:
permissions:
contents: read
jobs:
proof:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '25'
- uses: jbangdev/setup-jbang@main
- name: Run all proof scripts
shell: bash
run: |
passed=0
failed=0
failures=()
while IFS= read -r -d '' script; do
name="${script#proof/}"
if jbang "$script" > /dev/null 2>&1; then
echo "✅ $name"
passed=$((passed + 1))
else
echo "❌ $name"
failures+=("$name")
failed=$((failed + 1))
fi
done < <(find proof -name '*.java' -print0 | sort -z)
echo ""
echo "Results: $passed passed, $failed failed out of $((passed + failed)) scripts"
if [ ${#failures[@]} -gt 0 ]; then
echo ""
echo "Failed scripts:"
for f in "${failures[@]}"; do
echo " - $f"
done
exit 1
fi