Skip to content

Commit 22383f3

Browse files
Add test execution and failure reporting to build.yml
- Add 'Run tests' step using `make test` to run the full git test suite - Add 'Print test failures' step using `ci/print-test-failures.sh` for clear failure output on GitHub Actions - Add 'Upload failed tests' step to upload test artifacts on failure, conditioned on FAILED_TEST_ARTIFACTS being set by the print step - Update upload-artifact action to v5 to match main.yml Co-authored-by: william1982Byrd-afk <263697744+william1982Byrd-afk@users.noreply.github.com>
1 parent 20bc5bc commit 22383f3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,19 @@ jobs:
4545
run: |
4646
./git --version
4747
./git init --bare /tmp/smoke-test-repo
48+
49+
- name: Run tests
50+
run: |
51+
export PATH="/usr/lib/ccache:$PATH"
52+
make test
53+
54+
- name: Print test failures
55+
if: failure()
56+
run: ci/print-test-failures.sh
57+
58+
- name: Upload failed tests' directories
59+
if: failure() && env.FAILED_TEST_ARTIFACTS != ''
60+
uses: actions/upload-artifact@v5
61+
with:
62+
name: failed-tests
63+
path: ${{ env.FAILED_TEST_ARTIFACTS }}

0 commit comments

Comments
 (0)