-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (48 loc) · 1.15 KB
/
lint-web.yml
File metadata and controls
57 lines (48 loc) · 1.15 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Lint frontend
on:
push:
branches:
- main
- dev
- "release/**"
paths-ignore:
- "*.md"
- "LICENSE"
pull_request:
branches:
- main
- dev
- "release/**"
paths-ignore:
- "*.md"
- "LICENSE"
jobs:
lint-web:
runs-on:
- codebuild-defguard-proxy-runner-${{ github.run_id }}-${{ github.run_attempt }}
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: recursive
- name: Install NodeJS
uses: actions/setup-node@v6
with:
node-version: 25
- name: Install pnpm
uses: pnpm/action-setup@v6
with:
cache: true
version: 10
- name: Install deps
working-directory: web
run: pnpm install --frozen-lockfile
- name: Build translations
working-directory: web
run: pnpm dlx @inlang/paraglide-js compile --project ./project.inlang --outdir ./src/paraglide
- name: Lint
working-directory: web
run: pnpm lint
- name: Audit
working-directory: web
run: pnpm audit --prod --ignore-unfixable