Skip to content

Commit

Permalink
Try eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
AydinHassan committed Jan 19, 2024
1 parent db27951 commit e7b9cd1
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/admin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Administration
on:
push:
branches:
- trunk
pull_request:

jobs:
unit:
name: Jest
uses: shopware/github-actions/.github/workflows/admin-jest.yml@main
with:
extensionName: ${{ github.event.repository.name }}
uploadCoverage: true
secrets:
codecovToken: ${{ secrets.CODECOV_TOKEN }}
lint:
name: ESLint
uses: shopware/github-actions/.github/workflows/admin-eslint.yml@main
with:
extensionName: ${{ github.event.repository.name }}
36 changes: 36 additions & 0 deletions .github/workflows/storefront.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Storefront
on:
push:
branches:
- trunk
pull_request:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Clone Shopware
uses: actions/checkout@v4
with:
repository: shopware/shopware
ref: trunk
- name: Clone Extension
uses: actions/checkout@v4
with:
path: custom/plugins/${{ github.event.repository.name }}

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Install Plugin Dependencies
working-directory: custom/plugins/${{ github.event.repository.name }}/src/Resources/app/storefront
run: npm install --no-audit --no-fund --prefer-offline

- name: Run ESLint
working-directory: custom/plugins/${{ github.event.repository.name }}/src/Resources/app/administration
run: |
../../../../../../../src/Storefront/Resources/app/storefront/node_modules/.bin/eslint --config ../../../../../../../src/Storefront/Resources/app/storefront/.eslintrc.js ./src
../../../../../../../src/Storefront/Resources/app/storefront/node_modules/.bin/stylelint --config ../../../../../../../src/Storefront/Resources/app/storefront/stylelint.config.js ./src

0 comments on commit e7b9cd1

Please # to comment.