Skip to content

Commit 4e66441

Browse files
committed
Upload bats logs
1 parent 4235363 commit 4e66441

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/jobs/configure-checks/setup_configure_image.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ make configure
2222
cp submit/assert.bash .github/jobs/configure-checks/
2323

2424
# Run the configure tests for this usecase
25-
test_path="/__w/domjudge/domjudge" bats .github/jobs/configure-checks/all.bats
25+
mkdir /tmp/bats_logs
26+
test_path="/__w/domjudge/domjudge" bats --print-output-on-failure --gather-test-outputs-in /tmp/bats_logs .github/jobs/configure-checks/all.bats

.github/workflows/autoconf-check.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,10 @@ jobs:
3333
- uses: actions/checkout@v4
3434
- name: Setup image and run bats tests
3535
run: .github/jobs/configure-checks/setup_configure_image.sh
36+
- name: Upload all logs/artifacts
37+
if: ${{ !cancelled() }}
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: ${{ matrix.os }}-${{ matrix.version }}-logs
41+
path: |
42+
/tmp/bats_logs

0 commit comments

Comments
 (0)