-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
38 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,19 +12,19 @@ on: | |
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
|
||
name: "Sylius ${{ matrix.sylius }}, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, MySQL ${{ matrix.mysql }}, wkhtmltopdf: ${{ matrix.wkhtmltopdf }}, State Machine Adapter ${{ matrix.state_machine_adapter }}" | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: ["8.3"] | ||
symfony: ["^6.4"] | ||
symfony: ["^6.4", "^7.1"] | ||
sylius: ["2.0.x-dev"] | ||
node: ["20.x"] | ||
mysql: ["8.4"] | ||
wkhtmltopdf: ["0.12.6"] | ||
wkhtmltopdf: ["0.12.6-1"] | ||
state_machine_adapter: [ "winzou_state_machine", "symfony_workflow" ] | ||
|
||
include: | ||
|
@@ -45,6 +45,23 @@ jobs: | |
wkhtmltopdf: false | ||
state_machine_adapter: "winzou_state_machine" | ||
|
||
- | ||
php: "8.3" | ||
symfony: "^7.1" | ||
sylius: "2.0.x-dev" | ||
node: "20.x" | ||
mysql: "8.4" | ||
wkhtmltopdf: false | ||
state_machine_adapter: "symfony_workflow" | ||
- | ||
php: "8.3" | ||
symfony: "^7.1" | ||
sylius: "2.0.x-dev" | ||
node: "20.x" | ||
mysql: "8.4" | ||
wkhtmltopdf: false | ||
state_machine_adapter: "winzou_state_machine" | ||
|
||
env: | ||
APP_ENV: test | ||
DATABASE_URL: "mysql://root:[email protected]/sylius?serverVersion=${{ matrix.mysql }}" | ||
|
@@ -93,7 +110,8 @@ jobs: | |
name: Install wkthtmltopdf | ||
if: matrix.wkhtmltopdf != false && steps.cache-wkhtmltopdf.outputs.cache-hit != 'true' | ||
run: | | ||
sudo apt-get install -y xfonts-base xfonts-75dpi | ||
sudo apt-get update | ||
sudo apt-get install -y libssl1.1 xfonts-base xfonts-75dpi | ||
wget https://github.com/wkhtmltopdf/packaging/releases/download/${{ matrix.wkhtmltopdf }}/wkhtmltox_${{ matrix.wkhtmltopdf }}.focal_amd64.deb | ||
sudo dpkg -i wkhtmltox_${{ matrix.wkhtmltopdf }}.focal_amd64.deb | ||
|
@@ -191,7 +209,12 @@ jobs: | |
|
||
- | ||
name: Run Behat | ||
run: vendor/bin/behat --colors --strict -vvv --no-interaction -f progress || vendor/bin/behat --colors --strict -vvv --no-interaction -f progress --rerun | ||
run: | | ||
if [ "${{ matrix.wkhtmltopdf }}" != "false" ]; then | ||
vendor/bin/behat --colors --strict -vvv --no-interaction -f progress --tags="~@pdf_edisabled" || vendor/bin/behat --colors --strict -vvv --no-interaction -f progress --rerun; | ||
else | ||
vendor/bin/behat --colors --strict -vvv --no-interaction -f progress --tags="~@pdf_enabled" || vendor/bin/behat --colors --strict -vvv --no-interaction -f progress --rerun; | ||
fi | ||
- | ||
name: Upload Behat logs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ Feature: Saving invoices on server during generation | |
And the store allows paying with "Cash on Delivery" | ||
And channel "United States" has shop billing data set as "Ragnarok", "1100110011", "Pacific Coast Hwy", "90806" "Los Angeles", "United States" | ||
|
||
@application | ||
@application @pdf_enabled | ||
Scenario: Having invoice saved on the server after the order is placed | ||
Given there is a customer "[email protected]" that placed an order "#00000666" | ||
When the customer bought 2 "Angel T-Shirt" products | ||
|