-
Notifications
You must be signed in to change notification settings - Fork 83
64 lines (53 loc) · 1.63 KB
/
security-code-quality-and-bundle-size-checks.yml
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
name: Security, Code Quality and Bundle Size Checks
on:
pull_request:
branches: ['develop', 'main', 'hotfix/*']
types: ['opened', 'reopened', 'synchronize']
env:
NODE_OPTIONS: "--no-warnings"
jobs:
bundle-size-checks:
name: Bundle size checks
runs-on: [self-hosted, Linux, X64]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Execute bundle size checks
uses: rudderlabs/[email protected]
env:
HUSKY: 0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
install_script: setup:ci
build_script: check:size:build
clean_script: clean
script: npm run check:size:json:ci --silent -- --output-style=static --silent=true --exclude=@rudderstack/analytics-js-sanity-suite,@rudderstack/analytics-js-loading-scripts
is_monorepo: true
security-code-quality-checks:
name: Security and code quality checks
runs-on: [self-hosted, Linux, X64]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
env:
HUSKY: 0
run: |
npm run setup:ci
- name: Execute code quality checks
run: |
npm run check:circular
npm run check:duplicates
- name: Execute security checks
run: |
npm run check:security