Merge pull request #421 from findologic/SW-815_v6 #272
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.2' ] | |
shopware-versions: [ | |
'6.6.2.0', | |
] | |
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: 20 | |
- 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: Set minimum stability to dev | |
run: | | |
cd shopware | |
composer config minimum-stability dev | |
- 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 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: 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: Run ESLint | |
run: | | |
cd shopware/custom/plugins/plugin-shopware-6 | |
make administration-lint | |
make storefront-lint |