Skip to content

fix: reformat scrollToRevealLazyContent call to multi-line per Pretti… #1530

fix: reformat scrollToRevealLazyContent call to multi-line per Pretti…

fix: reformat scrollToRevealLazyContent call to multi-line per Pretti… #1530

Workflow file for this run

name: Code Quality
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npx eslint src/ --ext .js,.jsx --format stylish
stylelint:
name: Stylelint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run Stylelint
run: npx stylelint "src/**/*.css" --formatter verbose
build:
name: Build Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Check for build artifacts
run: |
if [ ! -d "build" ] || [ -z "$(ls -A build/*.js 2>/dev/null)" ]; then
echo "Build failed - no JS files in build directory"
exit 1
fi
echo "Build successful - artifacts found:"
ls -la build/
bundle-size:
name: Bundle Size Budget
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Check bundle size budgets
run: npm run size