Skip to content

SW-804 special character Eszett should be keep v4 #1657

SW-804 special character Eszett should be keep v4

SW-804 special character Eszett should be keep v4 #1657

Workflow file for this run

# Used for Shopware versions >= 6.4
name: PHPUnit
on:
push:
branches:
- main
- develop
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '7.4' ]
shopware-versions: [
'v6.4.6.0',
'v6.4.7.0',
'v6.4.8.2',
'v6.4.9.0',
'v6.4.10.1',
'v6.4.11.1',
'v6.4.12.0',
'v6.4.13.0',
'v6.4.14.0',
'v6.4.15.2',
'v6.4.16.1',
'v6.4.17.2',
'v6.4.18.1',
'v6.4.19.0',
'v6.4.20.2',
]
name: Shopware ${{ matrix.shopware-versions }} Test (PHP ${{ matrix.php-versions }})
steps:
- uses: mirromutth/[email protected]
with:
mysql version: '5.7'
mysql database: shopware
mysql root password: shopware
- uses: actions/checkout@v2
with:
path: plugin-shopware-6
- name: Setup Node 14
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Setup PHP with Composer 2
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: dom, gd, mbstring, pdo_mysql, zip
coverage: xdebug
tools: composer:2.1.5
- name: Validate dependencies
run: |
cd plugin-shopware-6
composer validate
- name: Clone Shopware repository
uses: actions/checkout@v2
with:
repository: shopware/development
ref: ${{ matrix.shopware-versions }}
path: development
- name: Add dependency conflicts
if: |
matrix.shopware-versions == 'v6.4.6.0' ||
matrix.shopware-versions == 'v6.4.7.0'
run: |
cd development
mv composer.json temp.json
jq -r '.conflict."symfony/framework-bundle" |= ">=5.3.14"' temp.json > composer.json
rm temp.json
- name: Install Shopware
run: |
cp plugin-shopware-6/.github/.psh.yaml.override development
cd development
composer require "shopware/platform:${{ matrix.shopware-versions }}@dev || trunk" --no-update
./psh.phar init
./psh.phar storefront:install-dependencies
- name: Install dependencies
run: |
cd plugin-shopware-6
composer install --no-interaction
cd src/Resources/app/storefront
npm ci
- name: Install plugin
run: |
mv plugin-shopware-6 development/custom/plugins
cd development
php bin/console plugin:refresh
php bin/console plugin:install --activate --clearCache FinSearch
- name: Run PHPUnit test suite
run: |
cd development/custom/plugins/plugin-shopware-6
SYMFONY_DEPRECATIONS_HELPER=disabled composer test
- name: Run storefront Jest test suite
run: |
cd development/custom/plugins/plugin-shopware-6/src/Resources/app/storefront
npm run test