diff --git a/.env b/.env index 00581e5..1aefb6b 100644 --- a/.env +++ b/.env @@ -25,7 +25,7 @@ MAILER_URL=smtp://localhost ###> symfony/messenger ### # Choose one of the transports below # MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages -# MESSENGER_TRANSPORT_DSN=doctrine://default +MESSENGER_TRANSPORT_DSN=doctrine://default # MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages ###< symfony/messenger ### diff --git a/.env.test b/.env.test index 1e0cf76..0ce5931 100644 --- a/.env.test +++ b/.env.test @@ -7,3 +7,8 @@ JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private-test.pem JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public-test.pem JWT_PASSPHRASE=ALL_THAT_IS_GOLD_DOES_NOT_GLITTER_NOT_ALL_THOSE_WHO_WANDER_ARE_LOST ###< lexik/jwt-authentication-bundle ### + +###> symfony/messenger ### +# Sync transport turned for testing env for the ease of testing +MESSENGER_TRANSPORT_DSN=sync:// +###< symfony/messenger ### diff --git a/.env.test_cached b/.env.test_cached index 7b3bae6..3964f31 100644 --- a/.env.test_cached +++ b/.env.test_cached @@ -8,3 +8,8 @@ JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private-test.pem JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public-test.pem JWT_PASSPHRASE=ALL_THAT_IS_GOLD_DOES_NOT_GLITTER_NOT_ALL_THOSE_WHO_WANDER_ARE_LOST ###< lexik/jwt-authentication-bundle ### + +###> symfony/messenger ### +# Sync transport turned for testing env for the ease of testing +MESSENGER_TRANSPORT_DSN=sync:// +###< symfony/messenger ### diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3208688..cdd2f17 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,15 +23,11 @@ jobs: strategy: fail-fast: false matrix: - php: ["7.4", "8.0"] - symfony: ["^4.4", "^5.2"] - node: ["10.x"] + php: ["8.0"] + symfony: ["^4.4", "^5.4"] + node: ["14.x"] mysql: ["5.7", "8.0"] - exclude: - - - php: "7.4" - mysql: "5.7" env: APP_ENV: test_cached DATABASE_URL: "mysql://root:root@127.0.0.1/sylius?serverVersion=${{ matrix.mysql }}" @@ -160,10 +156,6 @@ jobs: name: Run PHPStan run: vendor/bin/phpstan analyse -c phpstan.neon -l max src/ - - - name: Validate database schema - run: bin/console doctrine:schema:validate - - name: Run PHPSpec run: vendor/bin/phpspec run --ansi -f progress --no-interaction @@ -172,13 +164,17 @@ jobs: name: Run PHPUnit run: vendor/bin/phpunit --colors=always + - + name: Run managing catalog promotion scenarios + run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@todo&&~@cli&&@managing_catalog_promotions" + - - name: Run non-JS Behat - run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@javascript && ~@todo && ~@cli" + name: Run non-JS Behat (without managing catalog promotion scenarios) + run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@todo&&~@cli&&@~managing_catalog_promotions" - name: Run JS 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 || 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" || vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@javascript&&~@todo&&~@cli" --rerun || vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@javascript&&~@todo&&~@cli" --rerun - name: Upload Behat logs diff --git a/behat.yml.dist b/behat.yml.dist index a9d28f3..ac89478 100644 --- a/behat.yml.dist +++ b/behat.yml.dist @@ -59,4 +59,4 @@ default: gherkin: filters: - tags: "~@todo && ~@cli" # CLI is excluded as it registers an error handler that mutes fatal errors + tags: "~@todo&&~@cli" # CLI is excluded as it registers an error handler that mutes fatal errors diff --git a/config/packages/test_cached/web_profiler.yaml b/config/packages/test_cached/web_profiler.yaml new file mode 100644 index 0000000..9052e3a --- /dev/null +++ b/config/packages/test_cached/web_profiler.yaml @@ -0,0 +1,2 @@ +imports: + - { resource: "../test/web_profiler.yaml" }