-
Notifications
You must be signed in to change notification settings - Fork 9
40 lines (38 loc) · 995 Bytes
/
lint.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
---
name: Lint code
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
lint:
runs-on: github-actions-runner-emarsys
permissions:
contents: "read"
steps:
- name: Checkout code
shell: bash
run: |
sudo apt-get update
sudo apt-get install git -y
git clone https://github.com/emartech/magento2-extension.git
- name: Login to GitLab
uses: docker/login-action@v3
with:
registry: ${{ vars.REGISTRY_URL }}
username: ${{ secrets.GITLAB_USER }}
password: ${{ secrets.GITLAB_TOKEN }}
- name: Run codesniffer
shell: bash
run: |
ls -la
env:
VERSION: 2.4.0ce
# TODO need fix eslint outputs
# - name: Run eslint
# shell: bash
# run: |
# docker run --rm "${{ vars.REGISTRY_URL }}/itg-commerce/emarsys-magento2-extension-test/mage_node" sh -c "npm run code-style"