2022-11-21 22:16:43 -08:00
|
|
|
name: Web3.js Analyze Bundle Size
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_run:
|
|
|
|
workflows:
|
|
|
|
- Web3.js Experimental
|
|
|
|
types:
|
|
|
|
- completed
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
compare-bundle-size:
|
|
|
|
name: Compare Bundle Size
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
if: >
|
|
|
|
github.event.workflow_run.event == 'pull_request' &&
|
|
|
|
github.event.workflow_run.conclusion == 'success'
|
|
|
|
|
|
|
|
env:
|
|
|
|
# Configuration for Bundlewatch
|
|
|
|
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
|
|
|
|
CI_COMMIT_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: pnpm/action-setup@v2.0.1
|
|
|
|
with:
|
|
|
|
version: 7
|
|
|
|
run_install: false
|
|
|
|
|
|
|
|
- name: Download built bundles
|
2022-11-21 22:36:15 -08:00
|
|
|
uses: dawidd6/action-download-artifact@v2
|
2022-11-21 22:16:43 -08:00
|
|
|
with:
|
2022-11-21 22:36:15 -08:00
|
|
|
workflow: ${{ github.event.workflow_run.workflow_id }}
|
|
|
|
run_id: ${{github.event.workflow_run.id}}
|
2022-11-21 22:16:43 -08:00
|
|
|
name: dist
|
|
|
|
|
|
|
|
- name: Run Bundlewatch
|
|
|
|
run: pnpx bundlewatch
|