-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (31 loc) · 969 Bytes
/
Copy pathui.yml
File metadata and controls
33 lines (31 loc) · 969 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
name: ui
on:
push:
branches: [main]
paths: ["frontend/**", "ragproof/ui/**", ".github/workflows/ui.yml"]
pull_request:
paths: ["frontend/**", "ragproof/ui/**", ".github/workflows/ui.yml"]
jobs:
frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: frontend/package-lock.json
- run: npm ci
- run: npm run typecheck
- run: npm run lint
- run: npm run format:check
- run: npm run test
- run: npm run build
- name: scan bundle for external resource loads
working-directory: .
run: |
! grep -rEl '(src|href)[[:space:]]*=[[:space:]]*["'\'']https?://' ragproof/ui/static/index.html
! grep -rEl 'url\((["'\'']?)https?://' ragproof/ui/static --include='*.css'