chore: address coderabbit comments for ninetailed examples #66
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |