mirror of
https://github.com/leon-ai/leon.git
synced 2024-12-18 22:31:32 +03:00
35 lines
769 B
YAML
35 lines
769 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches: [master, develop]
|
|
pull_request:
|
|
branches: [master, develop]
|
|
|
|
jobs:
|
|
lint:
|
|
|
|
runs-on: ubuntu-20.04
|
|
container: leonai/ci:latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Cache node_modules
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/.npm
|
|
key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}
|
|
restore-keys: ${{ runner.os }}-npm-
|
|
- name: Cache Pipenv
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ./bridges/python/.venv
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/Pipfile.lock') }}
|
|
restore-keys: ${{ runner.os }}-pip-
|
|
- name: Install
|
|
run: npm ci
|
|
|
|
- name: Run linter
|
|
run: npm run lint
|