Skip to content

Commit

Permalink
ci: Upload test logs as build artifacts
Browse files Browse the repository at this point in the history
To be able to better understand why a test might fail on a particular
platform upload the log files as a build artifact.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
  • Loading branch information
larsclausen committed Jan 20, 2024
1 parent 192b6ae commit ba3439a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ cd ivtest
status=0

perl vvp_reg.pl || status=1
mv log vvp_log

perl vpi_reg.pl || status=1

Expand Down
21 changes: 20 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ jobs:
- name: Test
run: ./.github/test.sh

- name: Archive test logs
if: always()
uses: actions/upload-artifact@v3
with:
name: test-logs-macOS
path: ivtest/*log/*

lin:
strategy:
Expand Down Expand Up @@ -65,6 +70,13 @@ jobs:
- name: Test
run: ./.github/test.sh

- name: Archive test logs
if: always()
uses: actions/upload-artifact@v3
with:
name: test-logs-ubuntu-${{ matrix.os }}
path: ivtest/*log/*

- name: Documentation
run: |
cd Documentation
Expand Down Expand Up @@ -118,6 +130,13 @@ jobs:
run: |
./.github/test.sh
- name: Archive test logs
if: always()
uses: actions/upload-artifact@v3
with:
name: test-logs-${{ matrix.msystem }}-${{ matrix.arch }}
path: ivtest/*log/*

- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.msystem }}-${{ matrix.arch }}
Expand Down

0 comments on commit ba3439a

Please sign in to comment.