Merge pull request #11 from Oksydan/analitics-data-bo #39
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
name: Lint code | |
on: [ push, pull_request ] | |
permissions: | |
contents: read | |
jobs: | |
stylelint: | |
name: Code quality - SCSS Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
- name: Install dependencies | |
run: cd ./_theme_dev && npm install | |
- name: Stylelint action | |
run: cd ./_theme_dev && npm run scss-lint | |
eslint: | |
name: Code quality - ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
- name: Install dependencies | |
run: cd ./_theme_dev && npm install | |
- name: Eslint action | |
run: cd ./_theme_dev && npm run js-lint |