Repository navigation
76 lines (65 loc) · 1.96 KB
/
Copy pathlint.yaml
File metadata and controls
76 lines (65 loc) · 1.96 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: 'lint'
on:
push:
branches:
- main
- dev
- 'release/**'
- 'stable/**'
paths-ignore:
- '*.md'
- 'LICENSE'
pull_request:
branches:
- main
- dev
- 'release/**'
- 'stable/**'
paths-ignore:
- '*.md'
- 'LICENSE'
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
lint-web:
runs-on:
- codebuild-defguard-client-runner-${{ github.run_id }}-${{ github.run_attempt }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
submodules: recursive
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
node-version-file: new-ui/.nvmrc
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6
with:
version: 11.28
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
STORE_PATH=$(pnpm store path --silent)
mkdir -p "$STORE_PATH"
echo "STORE_PATH=$STORE_PATH" >> $GITHUB_ENV
- name: Restore pnpm store cache
uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5
with:
path: ${{ env.STORE_PATH }}
key: pnpm-store-${{ runner.os }}-${{ hashFiles('new-ui/pnpm-lock.yaml') }}
restore-keys: |
pnpm-store-${{ runner.os }}-
# Change to '--frozen-lockfile' once this gets fixed:
# https://github.com/pnpm/action-setup/issues/40
- name: Install Node dependencies for new UI
run: |
cd new-ui
pnpm install --no-frozen-lockfile
- name: Run Biome and Prettier Lint for new UI
run: |
cd new-ui
pnpm lint
- name: Audit new UI
run: |
cd new-ui
pnpm audit --prod