Skip to content
Draft
Changes from all commits
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
35 changes: 35 additions & 0 deletions .github/workflows/test-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Upload Test Artifacts

on:
workflow_call:
inputs:
artifact-name:
required: false
type: string
default: 'failed-test-screenshots'
artifact-path:
required: false
type: string
default: 'var/www/behat-output/*.png'
retention-days:
required: false
type: number
default: 14

jobs:
upload-test-artifacts:
runs-on: ubuntu-latest
steps:
- name: List screenshot files
run: |
ls -l build/project/behat-output/ || true
ls -l var/www/behat-output/ || true
ls -l var/www/html/build/project/behat-output || true
ls -l
- name: Upload screenshots from failed tests
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifact-name }}
path: ${{ inputs.artifact-path }}
if-no-files-found: ignore
retention-days: ${{ inputs.retention-days }}