Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
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>
  • Loading branch information
Copilot and william1982Byrd-afk committed Mar 5, 2026
commit 22383f35bdbd8b9be39eb972ffe838f5d45f2907
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,19 @@ jobs:
run: |
./git --version
./git init --bare /tmp/smoke-test-repo

- name: Run tests
run: |
export PATH="/usr/lib/ccache:$PATH"
make test

- name: Print test failures
if: failure()
run: ci/print-test-failures.sh

- name: Upload failed tests' directories
if: failure() && env.FAILED_TEST_ARTIFACTS != ''
uses: actions/upload-artifact@v5
with:
name: failed-tests
path: ${{ env.FAILED_TEST_ARTIFACTS }}