forked from chaiNNer-org/chaiNNer
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.17 KB
/
lint-frontend.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
41
# This is a basic workflow to help you get started with Actions
name: Lint
# Controls when the workflow will run
on:
pull_request:
branches: ['*']
types:
- opened
- synchronize
- closed
paths-ignore:
- 'backend/**'
- 'requirements.txt'
- '.pylintrc'
- 'README.md'
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
frontend-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
# Node v14 comes with [email protected] by default.
# This version of npm does NOT install peer deps by default which is required by some of our deps
- run: npm i -g npm@7
- run: npm ci --force
- name: eslint
run: npm run lint-js-ci
- name: typescript
run: npx tsc