ci: add bundle size report #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Blade DangerJS | |
on: [pull_request] | |
env: | |
GITHUB_ACCESS_TOKEN: ${{ secrets.CI_BOT_TOKEN }} | |
jobs: | |
validate: | |
name: DangerJS | |
runs-on: ubuntu-latest # nosemgrep: non-self-hosted-runner | |
steps: | |
- name: Checkout Codebase | |
uses: actions/checkout@v4 | |
- name: Use Node v18 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.12.1 | |
- name: Setup Cache & Install Dependencies | |
uses: ./.github/actions/install-dependencies | |
# - name: Build Blade | |
# run: yarn run-s build:clean build:generate-types build:react-prod | |
# working-directory: packages/blade | |
# - name: Update Bundle Size Data | |
# run: yarn bundle-size | |
# working-directory: packages/blade | |
- name: Danger | |
run: yarn danger ci | |
working-directory: packages/blade | |
env: | |
DANGER_GITHUB_API_TOKEN: ${{ env.GITHUB_ACCESS_TOKEN }} | |
DANGER_DISABLE_TRANSPILATION: 'true' | |
BASE_BUNDLE_SIZE_STATS_URL: 'https://raw.githubusercontent.com/razorpay/blade/test-bundle-size-diff/baseBundleSizeStats.json' |