Skip to content

Commit 6a7ae4c

Browse files
committed
Run tests in a separate step and archive report
1 parent 9f110bb commit 6a7ae4c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/build-binaries.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,17 @@ jobs:
108108
echo "No AArch64 cross compiler found:"
109109
alr exec -- gprconfig --show-targets || true
110110
fi
111+
- name: Test
112+
shell: bash
113+
run: |
114+
scripts/build_als.sh test_als "$TAG"
115+
- name: Archive Test Report
116+
uses: actions/upload-artifact@v4
117+
with:
118+
name: als-test-report-${{ matrix.os }}
119+
path: |
120+
out/new
121+
xunit.xml
111122
- name: Archive ALS binary
112123
uses: actions/upload-artifact@v4
113124
with:

scripts/build_als.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ function test_als() {
311311
pip install -r "$ROOT/testsuite/requirements-ci.txt"
312312
export ALS="$ROOT/.obj/server/ada_language_server"
313313
alr exec python -- "$ROOT/testsuite/testsuite.py" --failure-exit-code 0 --show-error-output
314+
e3-testsuite-report --xunit-output xunit.xml out/new
314315
}
315316

316317
# Find the path to libgmp as linked in the given executable
@@ -413,7 +414,6 @@ all)
413414
build_als
414415
fix_rpath
415416
strip_debug
416-
test_als
417417
;;
418418

419419
pin_crates)

0 commit comments

Comments
 (0)