-
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (47 loc) · 1.25 KB
/
Copy pathdashboard-quality.yml
File metadata and controls
59 lines (47 loc) · 1.25 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
name: Dashboard Quality Gates
on:
push:
branches: [main, master]
paths:
- 'dashboard/**'
- '.github/workflows/dashboard-quality.yml'
pull_request:
paths:
- 'dashboard/**'
- '.github/workflows/dashboard-quality.yml'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: dashboard-quality-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
quality:
runs-on: ubuntu-latest
defaults:
run:
working-directory: dashboard
steps:
- name: Check out repository
uses: actions/checkout@v4.2.2
- name: Set up Node.js
uses: actions/setup-node@v4.4.0
with:
node-version: 22
cache: npm
cache-dependency-path: dashboard/package-lock.json
- name: Install locked dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Run lint
run: npm run lint
- name: Type-check
run: npx tsc --noEmit
- name: Build production bundle
run: npm run build
- name: Audit production dependencies
run: npm audit --omit=dev --audit-level=high
- name: Check diff whitespace
working-directory: .
run: git diff --check