-
Notifications
You must be signed in to change notification settings - Fork 30
40 lines (33 loc) · 1.05 KB
/
lint.yaml
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
name: lint
on:
pull_request:
types:
- ready_for_review
- review_requested
- synchronize
- milestoned
# Declare default permissions as read only.
permissions: read-all
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Validate Lint
uses: chartboost/ruff-action@e18ae971ccee1b2d7bbef113930f00c670b78da4 # v1.0.0
with:
version: 0.3.4
- name: Validate Formatting
uses: chartboost/ruff-action@e18ae971ccee1b2d7bbef113930f00c670b78da4 # v1.0.0
with:
version: 0.3.4
args: format --check
# Javascript & Typescript Linting
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version-file: 'src/leapfrogai_ui/package.json'
- name: Install UI Dependencies
run: npm --prefix src/leapfrogai_ui ci
- name: Run UI Linter
run: npm --prefix src/leapfrogai_ui run lint