Runs ESLint on the administration or storefront files of a Shopware extension.
- Clones Shopware repository
- Clones your extension
- Installs npm dependencies
- Runs the lint command
| Input | Description | Required | Default |
|---|---|---|---|
extensionName |
Your extension name | Yes | - |
projectPath |
Path to the JS project to be linted | No | src/Resources/app/administration |
npmLintCmd |
The npm command to run | No | lint |
shopwareVersion |
Shopware version (.auto to auto-detect) |
No | .auto |
shopwareVersionFallback |
Fallback version in case there's no matching branch | No | trunk |
shopware-repository |
The shopware repository to checkout | No | shopware/shopware |
shopware-github-token |
Token used for checking out the shopware repository | No | $GITHUB_TOKEN |
forceInstallAdminDeps |
Install platform admin deps | No | - |
forceInstallStorefrontDeps |
Install platform storefront deps | No | - |
jobs:
eslint:
uses: shopware/github-actions/eslint@main
with:
extensionName: MyExtensionNamejobs:
eslint:
uses: shopware/github-actions/eslint@main
with:
extensionName: MyExtensionName
projectPath: src/Resources/app/storefrontjobs:
eslint:
uses: shopware/github-actions/eslint@main
with:
extensionName: MyExtensionName
shopwareVersion: 6.5.xjobs:
eslint:
uses: shopware/github-actions/eslint@main
with:
extensionName: MyExtensionName
shopware-repository: my-org/shopware
shopware-github-token: ${{ secrets.SHOPWARE_TOKEN }}jobs:
eslint:
uses: shopware/github-actions/eslint@main
with:
extensionName: MyExtensionName
npmLintCmd: lint:fix