Skip to content

Commit

Permalink
Configure taking screenshot on failed panther tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubtobiasz committed Sep 16, 2024
1 parent 348cf53 commit 222a20c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/_matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"include": [
{
"php": "8.1",
"sylius": "1.12.*",
"symfony": "5.4.*",
"sylius": "1.12.x",
"symfony": "5.4.x",
"mysql": "8.0",
"state_machine": "winzou_state_machine"
},
{
"php": "8.3",
"sylius": "1.13.*",
"symfony": "6.4.*",
"sylius": "1.13.x",
"symfony": "6.4.x",
"mysql": "8.0",
"state_machine": "symfony_workflow"
}
Expand All @@ -21,13 +21,13 @@
"daily": {
"ci": {
"php": ["8.1", "8.3"],
"sylius": ["1.12.*", "1.13.*"],
"symfony": ["5.4.*", "6.4.*"],
"sylius": ["1.12.x", "1.13.x"],
"symfony": ["5.4.x", "6.4.x"],
"mysql": ["8.0"],
"state_machine": ["winzou_state_machine", "symfony_workflow"],
"exclude": [
{
"sylius": "1.12.*",
"sylius": "1.12.x",
"state_machine": "symfony_workflow"
}
]
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ jobs:
uses: actions/upload-artifact@v3
if: failure()
with:
name: "Logs"
name: "Logs for (Sylius ${{ matrix.sylius }}, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, MySQL ${{ matrix.mysql }}, State Machine ${{ matrix.state_machine }})"
path: |
tests/Application/var/log
tests/Application/var/panther
if-no-files-found: ignore
1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

<server name="KERNEL_CLASS_PATH" value="/tests/Application/src/Kernel.php" />
<server name="IS_DOCTRINE_ORM_SUPPORTED" value="true" />
<server name="PANTHER_ERROR_SCREENSHOT_DIR" value="tests/Application/var/panther" />

<env name="APP_ENV" value="test"/>
<env name="SHELL_VERBOSITY" value="-1" />
Expand Down

0 comments on commit 222a20c

Please sign in to comment.