Skip to content

Commit

Permalink
Merge pull request #286 from grml/zeha/debug
Browse files Browse the repository at this point in the history
actions: archive VM image on test failure
  • Loading branch information
zeha committed Aug 19, 2024
2 parents e43e6cc + a0f30f1 commit a1d33b8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,20 @@ jobs:
DEBOOTSTRAP: ${{matrix.debootstrap}}

- run: ./tests/build-vm-and-test.sh test
id: build_vm_and_test_test
name: "Test built VM image for ${{matrix.release}}"
env:
RELEASE: ${{matrix.release}}

- name: Archive VM image on failure
uses: actions/upload-artifact@v4
if: always() && (steps.build_vm_and_test_test.outcome == 'failure')
with:
name: vm-image-${{matrix.host_release}}-${{matrix.release}}-${{matrix.debootstrap}}
if-no-files-found: error
path: qemu.img
retention-days: 5

- name: Archive VM test results
uses: actions/upload-artifact@v4
if: always()
Expand Down

0 comments on commit a1d33b8

Please sign in to comment.