Merge pull request #1366 from mito-ds/fall-codebase-cleaning #4472
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: Test - mitosheet src lint | |
on: | |
push: | |
branches: [ dev ] | |
paths: | |
- 'mitosheet/**' | |
pull_request: | |
paths: | |
- 'mitosheet/**' | |
jobs: | |
lint-mitosheet-typescript: | |
name: Run linters | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.7.0 | |
with: | |
access_token: ${{ github.token }} | |
- name: Check out Git repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
cache: 'npm' | |
cache-dependency-path: mitosheet/package-lock.json | |
- name: Install Node.js dependencies | |
run: | | |
cd mitosheet | |
npm install eslint | |
- name: Run Linters | |
run: | | |
cd mitosheet | |
npm run lint:check | |