mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
minor #14886 Add var/log content to artifacts on pipeline fail (jakubtobiasz)
This PR was merged into the 1.12 branch.
Discussion
----------
| Q | A |
|-----------------|--------------------------------------------------------------|
| Branch? | 1.12
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets | n/a
| License | MIT
Small improvement, useful when 500 occurs on a Behat run.
Commits
-------
58c73cf0bb Add var/log directory to artifacts on pipeline fail
This commit is contained in:
commit
7ac21ae068
4 changed files with 25 additions and 15 deletions
8
.github/workflows/ci_e2e-custom.yaml
vendored
8
.github/workflows/ci_e2e-custom.yaml
vendored
|
|
@ -55,10 +55,12 @@ jobs:
|
|||
- name: Run non-JS Behat
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@todo&&~@cli&&~@no-postgres" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@todo&&~@cli&&~@no-postgres" --rerun
|
||||
|
||||
- name: Upload Behat logs
|
||||
- name: Upload logs
|
||||
uses: actions/upload-artifact@v3
|
||||
if: failure()
|
||||
with:
|
||||
name: "Behat logs (non-JS, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}) [Unstable], MySQL ${{ matrix.mysql }})"
|
||||
path: etc/build/
|
||||
name: "Logs (non-JS, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}) [Unstable], MySQL ${{ matrix.mysql }})"
|
||||
path: |
|
||||
etc/build/
|
||||
var/log
|
||||
if-no-files-found: ignore
|
||||
|
|
|
|||
8
.github/workflows/ci_e2e-mariadb.yaml
vendored
8
.github/workflows/ci_e2e-mariadb.yaml
vendored
|
|
@ -78,10 +78,12 @@ jobs:
|
|||
- name: Run non-JS Behat
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@todo&&~@cli&&~@no-postgres" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@todo&&~@cli&&~@no-postgres" --rerun
|
||||
|
||||
- name: Upload Behat logs
|
||||
- name: Upload logs
|
||||
uses: actions/upload-artifact@v3
|
||||
if: failure()
|
||||
with:
|
||||
name: "Behat logs (non-JS, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, MariaDB ${{ matrix.mariadb }}), DBAL ${{ matrix.dbal }}"
|
||||
path: etc/build/
|
||||
name: "Logs (non-JS, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, MariaDB ${{ matrix.mariadb }}), DBAL ${{ matrix.dbal }}"
|
||||
path: |
|
||||
etc/build/
|
||||
var/log
|
||||
if-no-files-found: ignore
|
||||
|
|
|
|||
16
.github/workflows/ci_e2e-mysql.yaml
vendored
16
.github/workflows/ci_e2e-mysql.yaml
vendored
|
|
@ -84,12 +84,14 @@ jobs:
|
|||
- name: Run non-JS Behat
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@todo&&~@cli&&~@no-postgres" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@todo&&~@cli&&~@no-postgres" --rerun
|
||||
|
||||
- name: Upload Behat logs
|
||||
- name: Upload logs
|
||||
uses: actions/upload-artifact@v3
|
||||
if: failure()
|
||||
with:
|
||||
name: "Behat logs (non-JS, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}), ApiPlatform ${{ matrix.api-platform }}, Twig ${{ matrix.twig }}, MySQL ${{ matrix.mysql }}, DBAL ${{ matrix.dbal }}"
|
||||
path: etc/build/
|
||||
name: "Logs (non-JS, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}), ApiPlatform ${{ matrix.api-platform }}, Twig ${{ matrix.twig }}, MySQL ${{ matrix.mysql }}, DBAL ${{ matrix.dbal }}"
|
||||
path: |
|
||||
etc/build/
|
||||
var/log
|
||||
if-no-files-found: ignore
|
||||
|
||||
behat-ui-js:
|
||||
|
|
@ -143,10 +145,12 @@ jobs:
|
|||
- name: Run Behat
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@javascript&&~@todo&&~@cli" || vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@javascript&&~@todo&&~@cli" --rerun
|
||||
|
||||
- name: Upload Behat logs
|
||||
- name: Upload logs
|
||||
uses: actions/upload-artifact@v3
|
||||
if: failure()
|
||||
with:
|
||||
name: "Behat logs (JS, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, ApiPlatform ${{ matrix.api-platform }}, Twig ${{ matrix.twig }}, MySQL ${{ matrix.mysql }}, DBAL ${{ matrix.dbal }})"
|
||||
path: etc/build/
|
||||
name: "Logs (JS, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, ApiPlatform ${{ matrix.api-platform }}, Twig ${{ matrix.twig }}, MySQL ${{ matrix.mysql }}, DBAL ${{ matrix.dbal }})"
|
||||
path: |
|
||||
etc/build/
|
||||
var/log
|
||||
if-no-files-found: ignore
|
||||
|
|
|
|||
8
.github/workflows/ci_e2e-pgsql.yaml
vendored
8
.github/workflows/ci_e2e-pgsql.yaml
vendored
|
|
@ -73,10 +73,12 @@ jobs:
|
|||
- name: Run non-JS Behat
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@todo&&~@cli&&~@no-postgres" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@todo&&~@cli&&~@no-postgres" --rerun
|
||||
|
||||
- name: Upload Behat logs
|
||||
- name: Upload logs
|
||||
uses: actions/upload-artifact@v3
|
||||
if: failure()
|
||||
with:
|
||||
name: "Behat logs (non-JS, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, PostgreSQL ${{ matrix.postgres }})"
|
||||
path: etc/build/
|
||||
name: "Logs (non-JS, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, PostgreSQL ${{ matrix.postgres }})"
|
||||
path: |
|
||||
etc/build/
|
||||
var/log
|
||||
if-no-files-found: ignore
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue