forked from instructlab/ui
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 884 Bytes
/
lint-ui.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
42
name: UI lint
on:
push:
branches:
- main
- release-1.0
paths:
- '.github/workflows/lint-ui.yml'
- '**/*'
- '!**/*.md'
pull_request:
branches:
- main
- release-1.0
paths:
- '.github/workflows/lint-ui.yml'
- '**/*'
- '!**/*.md'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
npm-lint:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Run UI linting
run: npm run lint
- name: Run UI type check
run: npm run type-check
- name: Run UI build
run: npm run build