Merge pull request #66 from Nosto/SSP-93_calida_instock_items_not_sho… #391
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: | |
- main | |
- develop | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: ESLint | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: nosto-shopware6 | |
- name: Setup Runner | |
uses: ./nosto-shopware6/.github/action/setup_runner | |
- name: Setup Plugin | |
uses: ./nosto-shopware6/.github/action/setup_plugin | |
- name: Setup Shopware Shop | |
uses: ./nosto-shopware6/.github/action/setup_shop | |
with: | |
shopware-version: '6.6.2.0' | |
- 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/nosto-shopware6 | |
npm run administration-lint | |
npm run storefront-lint |