-
Notifications
You must be signed in to change notification settings - Fork 29
41 lines (34 loc) · 1.2 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
41
name: lint
on:
pull_request:
types:
- opened # default trigger
- reopened # default trigger
- synchronize # default trigger
- ready_for_review # don't run on draft PRs
- milestoned # allows us to trigger on bot PRs
# Declare default permissions as read only.
permissions: read-all
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- 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@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
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