Skip to content

feat: added PostCSS plugin #6

feat: added PostCSS plugin

feat: added PostCSS plugin #6

name: Performance
on:
push:
branches: [main]
paths: ["src/**"]
pull_request:
branches: [main]
paths: ["src/**"]
workflow_dispatch:
jobs:
performance:
name: Performance Benchmarks
runs-on: ubuntu-24.04
timeout-minutes: 15
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run performance benchmarks
run: |
# Add your performance testing commands here
# This is a placeholder - adapt to your actual performance tests
echo "Running performance benchmarks..."
npm run build
# Example: measure bundle size changes
echo "### Performance Report" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "Bundle sizes:" >> $GITHUB_STEP_SUMMARY
ls -lh packages/css-if-polyfill/dist/ >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
- name: Comment performance results
if: github.event_name == 'pull_request'
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '🚀 Performance check completed! Check the summary for details.'
})