-
Notifications
You must be signed in to change notification settings - Fork 35
36 lines (31 loc) · 1.23 KB
/
storefront.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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