Skip to content

[UXIT-3605] Fix responsiveness issues on upload cards #213

[UXIT-3605] Fix responsiveness issues on upload cards

[UXIT-3605] Fix responsiveness issues on upload cards #213

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run security audit
run: npm audit --audit-level=high
continue-on-error: true
- name: Run lint and format check
run: npm run lint
- name: Run typecheck and build
run: npm run build
- name: Validate build artifacts
run: |
if [ ! -d "dist" ]; then
echo "Error: dist directory not created"
exit 1
fi
if [ ! -f "dist/index.html" ]; then
echo "Error: index.html not found in dist"
exit 1
fi
if [ ! -d "dist/assets" ]; then
echo "Error: dist/assets directory not created"
exit 1
fi
echo "✅ Build artifacts validated successfully"
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: site-dist
path: dist
retention-days: 7