Skip to content

Commit 1c06899

Browse files
committed
Run with bash
1 parent d52d757 commit 1c06899

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/java.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
example-exercises:
88
runs-on: ubuntu-latest
99
container:
10-
image: eclipse-temurin:25
10+
image: eclipse-temurin:24
1111

1212
steps:
1313
- uses: actions/checkout@v1
1414
- name: Install dependencies
1515
run: apt update && apt install -y jq
1616
- name: Evaluate sample exercises
17-
run: ./integration-tests/run
17+
run: bash ./integration-tests/run

integration-tests/run

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
set -e
2+
set -ex
33

44
# Default values
55
target_dir="integration-tests"
@@ -70,6 +70,7 @@ while read config; do
7070
, "source": "'"$judge/$source"'"
7171
}' \
7272
| (timeout -k 10s 60s "$judge/run" 2> /dev/null) \
73+
| tee >(cat > "$test_dir/output.json") \
7374
| jq --sort-keys 'if(.command == "append-message")
7475
then .message.description |= gsub("\n at [^\n]+\\([^)]+\\)"; "")
7576
else .
@@ -127,4 +128,4 @@ echo "Major changes: $major_change"
127128
if [ "$minor_change" -gt 0 ] || [ "$major_change" -gt 0 ]; then
128129
echo "FAIL. Run with --overwrite to update the results."
129130
exit 1
130-
fi
131+
fi

0 commit comments

Comments
 (0)