Skip to content

Commit 2f52902

Browse files
committed
upload logs if test task fails
1 parent d7c06d3 commit 2f52902

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/foreman_plugin.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,13 @@ jobs:
138138
if: ${{ contains(matrix.task, 'nulldb') }}
139139
- name: Run rake ${{ matrix.task }}
140140
run: bundle exec rake ${{ matrix.task }}
141+
- name: Upload logs
142+
uses: actions/upload-artifact@v3
143+
if: ${{ failure() && contains(matrix.task, 'test') }}
144+
with:
145+
name: logs
146+
path: log/*.log
147+
retention-days: 5
141148

142149
database:
143150
name: "Database - Foreman ${{ inputs.foreman_version }} with Ruby ${{ matrix.ruby }} and Node ${{ matrix.node }} on PostgreSQL ${{ matrix.postgresql }}"

0 commit comments

Comments
 (0)