We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1451176 commit 350e903Copy full SHA for 350e903
.github/workflows/test-artifacts.yaml
.github/workflows/test-artifacts.yml
@@ -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
12
13
+ default: 'build/project/behat-output/*.png'
14
+ retention-days:
15
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