-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.26 KB
/
lint-js.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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: nosto-shopware6
- name: Clone job scheduler repo
uses: actions/checkout@v2
with:
repository: Nosto/shopware6-job-scheduler
path: nosto-shopware6/dependencies/shopware6-job-scheduler
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- 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: nosto-shopware6
run: composer validate
- name: Install plugin dependencies
working-directory: nosto-shopware6
run: |
npm ci
composer install --no-interaction
- name: Install Shopware dependencies
working-directory: nosto-shopware6
run: npm run install-sw-dependencies
- name: Run ESLint
working-directory: nosto-shopware6
run: |
npm run administration-lint
npm run storefront-lint