-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Nosto/ADS-4214_add_linting_workflow
ADS-4214 Add linting workflow
- Loading branch information
Showing
54 changed files
with
13,161 additions
and
355 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/Resources/app/storefront/dist/* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
extends: [ | ||
'./vendor/shopware/administration/Resources/app/administration/.eslintrc.js', | ||
], | ||
parserOptions: { | ||
requireConfigFile: false, | ||
}, | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Lint JS | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
name: ESLint | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: shopware6-job-scheduler | ||
|
||
- name: Setup PHP with Composer 2 | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.1 | ||
extensions: dom, gd, mbstring, pdo_mysql, zip | ||
coverage: xdebug | ||
tools: composer:v2 | ||
|
||
- name: Validate dependencies | ||
working-directory: shopware6-job-scheduler | ||
run: composer validate | ||
|
||
- name: Install plugin dependencies | ||
working-directory: shopware6-job-scheduler | ||
run: | | ||
npm ci | ||
composer install --no-interaction | ||
- name: Install Shopware dependencies | ||
working-directory: shopware6-job-scheduler | ||
run: npm run install-sw-dependencies | ||
|
||
- name: Run ESLint | ||
working-directory: shopware6-job-scheduler | ||
run: npm run administration-lint |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Lint PHP | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
name: PHPLint | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: shopware6-job-scheduler | ||
|
||
- name: Setup PHP with Composer 2 | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.1 | ||
extensions: dom, gd, mbstring, pdo_mysql, zip | ||
coverage: xdebug | ||
tools: composer:v2 | ||
|
||
- name: Validate dependencies | ||
working-directory: shopware6-job-scheduler | ||
run: composer validate | ||
|
||
- name: Install plugin dependencies | ||
working-directory: shopware6-job-scheduler | ||
run: composer install --no-interaction | ||
|
||
- name: Run PHPLint | ||
working-directory: shopware6-job-scheduler | ||
run: composer run lint |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
.idea | ||
vendor | ||
node_modules |
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
Oops, something went wrong.