SW-807 Add checks for Client and create new if client base_uri not from Findologic or client is not set v5 #235
Workflow file for this run
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
name: Lint JS | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: [ '8.1' ] | |
shopware-versions: [ | |
'6.5.8.9', | |
] | |
name: ESLint - ${{ matrix.shopware-versions }} | |
steps: | |
- uses: mirromutth/[email protected] | |
with: | |
mysql version: '8.0' | |
mysql database: shopware_test | |
mysql root password: root | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18.18.0 # Last version with npm 9 (Shopware requirement) | |
- uses: actions/checkout@v2 | |
with: | |
path: plugin-shopware-6 | |
- 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: Install Shopware-CLI | |
run: | | |
curl -1sLf "https://dl.cloudsmith.io/public/friendsofshopware/stable/setup.deb.sh" | sudo -E bash | |
sudo apt install shopware-cli | |
- name: Create shop | |
run: shopware-cli project create shopware ${{ matrix.shopware-versions }} | |
- name: Install Shopware | |
run: | | |
cp plugin-shopware-6/.github/.env.local shopware | |
cp plugin-shopware-6/.github/.env.test shopware | |
cd shopware | |
./bin/console system:install --basic-setup | |
- name: Install administration dependencies | |
run: | | |
cd shopware/vendor/shopware/administration/Resources/app/administration | |
npm i | |
- name: Install storefront dependencies | |
run: | | |
cd shopware/vendor/shopware/storefront/Resources/app/storefront | |
npm i | |
- name: Install dependencies | |
run: | | |
cd plugin-shopware-6 | |
composer install --no-interaction | |
npm i | |
cd src/Resources/app/storefront | |
npm ci | |
- name: Install Plugin | |
run: | | |
mv plugin-shopware-6 shopware/custom/plugins | |
cd shopware | |
php bin/console plugin:refresh | |
php bin/console plugin:install --activate --clearCache FinSearch | |
./bin/build-administration.sh | |
./bin/build-storefront.sh | |
- name: Run ESLint | |
run: | | |
cd shopware/custom/plugins/plugin-shopware-6 | |
make administration-lint | |
make storefront-lint |