store locator #310
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: Linter | |
on: [push] | |
jobs: | |
pylint: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./api | |
strategy: | |
matrix: | |
python-version: ["3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pipenv' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pipenv | |
pipenv install --system --ignore-pipfile --dev | |
- name: Analysing the code with pylint | |
working-directory: ./api | |
run: | | |
pylint $(git ls-files '*.py') | |
jslint: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./client | |
strategy: | |
matrix: | |
node-version: [20.x] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
cache-dependency-path: ./client/package-lock.json | |
- name: Install dependencies | |
run: npm install | |
- name: Run eslint | |
run: npx eslint $(git ls-files '*.jsx') | |