Skip to content

Add more libraries to the vendors chunk #2854

Add more libraries to the vendors chunk

Add more libraries to the vendors chunk #2854

name: Statoscope diff analyze
on:
pull_request:
branches-ignore:
- 'weblate-**'
jobs:
statoscope:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install deps
run: npm ci
- name: Build
run: npm run build:analyze && cp ./dist/public/build/stats.json ./input.json
- name: Download reference stats
uses: dawidd6/action-download-artifact@v3
with:
workflow: statoscope_upload_main_stats.yml
workflow_conclusion: success
name: main-stats
path: ./
continue-on-error: true
- name: Validate
run: npm run statoscope:validate-diff
- name: Query stats
if: "github.event_name == 'pull_request'"
run: cat ./scripts/ci/statoscope-comment.jora | npx --no-install @statoscope/cli query --input input.json --input reference.json > result.json
- name: Save result.json and pr
if: always()
run: |
cp result.json ./report/statoscope
echo "${{ github.event.pull_request.number }}" > ./report/statoscope/report-pr
- uses: actions/upload-artifact@v4
if: always()
with:
name: statoscope-report
path: ./report/statoscope/
retention-days: 1