-
Notifications
You must be signed in to change notification settings - Fork 19
44 lines (41 loc) · 1013 Bytes
/
lint.yml
File metadata and controls
44 lines (41 loc) · 1013 Bytes
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
43
44
name: Lint
on: [push]
jobs:
changes:
name: Check Changes
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
ui:
- 'WebUI/**'
outputs:
ui: ${{ steps.filter.outputs.ui }}
lint_ui:
needs: changes
if: ${{ needs.changes.outputs.ui == 'true' }}
name: Lint WebUI
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
package_json_file: "WebUI/package.json"
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version-file: "WebUI/package.json"
cache: "pnpm"
- name: Install dependencies
working-directory: "./WebUI"
run: pnpm install
- name: Build
working-directory: "./WebUI"
run: |
pnpm build