Skip to content

Commit 350e903

Browse files
made test-artifacts on call
1 parent 1451176 commit 350e903

File tree

2 files changed

+29
-27
lines changed

2 files changed

+29
-27
lines changed

.github/workflows/test-artifacts.yaml

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Upload Test Artifacts
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
artifact-name:
7+
required: false
8+
type: string
9+
default: 'failed-test-screenshots'
10+
artifact-path:
11+
required: false
12+
type: string
13+
default: 'build/project/behat-output/*.png'
14+
retention-days:
15+
required: false
16+
type: number
17+
default: 14
18+
19+
jobs:
20+
upload-test-artifacts:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Upload screenshots from failed tests
24+
uses: actions/upload-artifact@v4
25+
with:
26+
name: ${{ inputs.artifact-name }}
27+
path: ${{ inputs.artifact-path }}
28+
if-no-files-found: ignore
29+
retention-days: ${{ inputs.retention-days }}

0 commit comments

Comments
 (0)