mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Add the sylius-labs/suite-tags-extension package
This commit is contained in:
parent
ee647e93c1
commit
307f4fe31f
7 changed files with 42 additions and 20 deletions
9
.github/workflows/ci_e2e-custom.yaml
vendored
9
.github/workflows/ci_e2e-custom.yaml
vendored
|
|
@ -45,9 +45,14 @@ jobs:
|
|||
continue-on-error: true
|
||||
run: vendor/bin/phpunit --colors=always
|
||||
|
||||
- name: Run CLI Behat
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@cli&&~@todo" --suite-tags="@cli" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="@cli&&~@todo" --suite-tags="@cli" --rerun
|
||||
|
||||
- name: Run non-UI Behat
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@todo&&~@cli" --suite-tags="@api,@domain,@hybrid" || vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@todo&&~@cli" --suite-tags="@api,@domain,@hybrid" --rerun
|
||||
|
||||
- name: Run non-JS Behat
|
||||
continue-on-error: true
|
||||
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
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@todo&&~@cli" --suite-tags="@ui" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@todo&&~@cli" --suite-tags="@ui" --rerun
|
||||
|
||||
- name: Upload logs
|
||||
uses: actions/upload-artifact@v3
|
||||
|
|
|
|||
7
.github/workflows/ci_e2e-mariadb.yaml
vendored
7
.github/workflows/ci_e2e-mariadb.yaml
vendored
|
|
@ -62,10 +62,13 @@ jobs:
|
|||
run: vendor/bin/phpunit --colors=always
|
||||
|
||||
- name: Run CLI Behat
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@cli&&~@todo" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="@cli&&~@todo" --rerun
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@cli&&~@todo" --suite-tags="@cli" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="@cli&&~@todo" --suite-tags="@cli" --rerun
|
||||
|
||||
- name: Run non-UI Behat
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@todo&&~@cli" --suite-tags="@api,@domain,@hybrid" || vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@todo&&~@cli" --suite-tags="@api,@domain,@hybrid" --rerun
|
||||
|
||||
- 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
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@todo&&~@cli" --suite-tags="@ui" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@todo&&~@cli" --suite-tags="@ui" --rerun
|
||||
|
||||
- name: Upload logs
|
||||
uses: actions/upload-artifact@v3
|
||||
|
|
|
|||
23
.github/workflows/ci_e2e-mysql.yaml
vendored
23
.github/workflows/ci_e2e-mysql.yaml
vendored
|
|
@ -41,7 +41,7 @@ jobs:
|
|||
steps:
|
||||
-
|
||||
uses: actions/checkout@v3
|
||||
|
||||
|
||||
- name: Restrict Twig
|
||||
if: matrix.twig == '^2.12'
|
||||
run: composer require --no-update --no-scripts --no-interaction "twig/twig:${{ matrix.twig }}"
|
||||
|
|
@ -60,18 +60,21 @@ jobs:
|
|||
database_version: ${{ matrix.mysql }}
|
||||
php_version: ${{ matrix.php }}
|
||||
symfony_version: ${{ matrix.symfony }}
|
||||
|
||||
|
||||
- name: Test installer
|
||||
run: bin/console sylius:install --no-interaction -vvv
|
||||
|
||||
|
||||
- name: Run PHPUnit
|
||||
run: vendor/bin/phpunit --colors=always
|
||||
|
||||
- name: Run CLI Behat
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@cli&&~@todo" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="@cli&&~@todo" --rerun
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@cli&&~@todo" --suite-tags="@cli" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="@cli&&~@todo" --suite-tags="@cli" --rerun
|
||||
|
||||
- name: Run non-UI Behat
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@todo&&~@cli" --suite-tags="@api,@domain,@hybrid" || vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@todo&&~@cli" --suite-tags="@api,@domain,@hybrid" --rerun
|
||||
|
||||
- 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
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@todo&&~@cli" --suite-tags="@ui" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@todo&&~@cli" --suite-tags="@ui" --rerun
|
||||
|
||||
- name: Upload logs
|
||||
uses: actions/upload-artifact@v3
|
||||
|
|
@ -91,15 +94,15 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix: ${{ fromJson(needs.get-matrix.outputs.matrix) }}
|
||||
|
||||
|
||||
env:
|
||||
APP_ENV: test_cached
|
||||
DATABASE_URL: "mysql://root:root@127.0.0.1/sylius?charset=utf8mb4&serverVersion=${{ matrix.mysql }}"
|
||||
|
||||
|
||||
steps:
|
||||
-
|
||||
uses: actions/checkout@v3
|
||||
|
||||
|
||||
- name: Get Composer cache directory
|
||||
id: composer-cache
|
||||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||
|
|
@ -110,7 +113,7 @@ jobs:
|
|||
path: ${{ steps.composer-cache.outputs.dir }}
|
||||
key: "${{ github.run_id }}-${{ runner.os }}-${{ hashFiles('composer.json') }}-symfony-${{ matrix.symfony }}-api-platform-${{ matrix.api-platform }}"
|
||||
restore-keys: "${{ github.run_id }}-${{ runner.os }}-${{ hashFiles('composer.json') }}-symfony-${{ matrix.symfony }}-api-platform-${{ matrix.api-platform }}"
|
||||
|
||||
|
||||
- name: Restrict Twig
|
||||
if: matrix.twig == '^2.12'
|
||||
run: composer require --no-update --no-scripts --no-interaction "twig/twig:${{ matrix.twig }}"
|
||||
|
|
@ -132,7 +135,7 @@ jobs:
|
|||
symfony_version: ${{ matrix.symfony }}
|
||||
|
||||
- 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
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@javascript&&~@todo&&~@cli" --suite-tags="@ui" || vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@javascript&&~@todo&&~@cli" --suite-tags="@ui" --rerun
|
||||
|
||||
- name: Upload logs
|
||||
uses: actions/upload-artifact@v3
|
||||
|
|
|
|||
9
.github/workflows/ci_e2e-pgsql.yaml
vendored
9
.github/workflows/ci_e2e-pgsql.yaml
vendored
|
|
@ -40,7 +40,7 @@ jobs:
|
|||
steps:
|
||||
-
|
||||
uses: actions/checkout@v3
|
||||
|
||||
|
||||
- name: Build application
|
||||
uses: SyliusLabs/BuildTestAppAction@v2.0
|
||||
with:
|
||||
|
|
@ -57,10 +57,13 @@ jobs:
|
|||
run: vendor/bin/phpunit --colors=always
|
||||
|
||||
- name: Run CLI Behat
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@cli&&~@todo" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="@cli&&~@todo" --rerun
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@cli&&~@todo" --suite-tags="@cli" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="@cli&&~@todo" --suite-tags="@cli" --rerun
|
||||
|
||||
- name: Run non-UI Behat
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@todo&&~@cli&&~@no-postgres" --suite-tags="@api,@domain,@hybrid" || vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@todo&&~@cli&&~@no-postgres" --suite-tags="@api,@domain,@hybrid" --rerun
|
||||
|
||||
- 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
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@todo&&~@cli&&~@no-postgres" --suite-tags="@ui" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@todo&&~@cli&&~@no-postgres" --suite-tags="@ui" --rerun
|
||||
|
||||
- name: Upload logs
|
||||
uses: actions/upload-artifact@v3
|
||||
|
|
|
|||
11
.github/workflows/ci_e2e-unstable.yaml
vendored
11
.github/workflows/ci_e2e-unstable.yaml
vendored
|
|
@ -46,14 +46,19 @@ jobs:
|
|||
database_version: ${{ matrix.mysql }}
|
||||
php_version: ${{ matrix.php }}
|
||||
symfony_version: ${{ matrix.symfony }}
|
||||
|
||||
|
||||
- name: Run PHPUnit
|
||||
continue-on-error: ${{ inputs.ignore-failure }}
|
||||
run: vendor/bin/phpunit --colors=always
|
||||
|
||||
- name: Run CLI Behat
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@cli&&~@todo" --suite-tags="@cli" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="@cli&&~@todo" --suite-tags="@cli" --rerun
|
||||
|
||||
- name: Run non-UI Behat
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@todo&&~@cli" --suite-tags="@api,@domain,@hybrid" || vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@todo&&~@cli" --suite-tags="@api,@domain,@hybrid" --rerun
|
||||
|
||||
- name: Run non-JS Behat
|
||||
continue-on-error: ${{ inputs.ignore-failure }}
|
||||
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
|
||||
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@todo&&~@cli" --suite-tags="@ui" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@todo&&~@cli" --suite-tags="@ui" --rerun
|
||||
|
||||
- name: Upload logs
|
||||
uses: actions/upload-artifact@v3
|
||||
|
|
|
|||
|
|
@ -65,6 +65,8 @@ default:
|
|||
|
||||
FriendsOfBehat\VariadicExtension: ~
|
||||
|
||||
SyliusLabs\SuiteTagsExtension: ~
|
||||
|
||||
gherkin:
|
||||
filters:
|
||||
tags: "~@todo&&~@cli" # CLI is excluded as it registers an error handler that mutes fatal errors
|
||||
|
|
|
|||
|
|
@ -225,6 +225,7 @@
|
|||
"rector/rector": "^0.12.20",
|
||||
"stripe/stripe-php": "^8.1",
|
||||
"sylius-labs/coding-standard": "^4.2",
|
||||
"sylius-labs/suite-tags-extension": "~0.1",
|
||||
"symfony/browser-kit": "^5.4 || ^6.0",
|
||||
"symfony/debug-bundle": "^5.4 || ^6.0",
|
||||
"symfony/dotenv": "^5.4 || ^6.0",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue