fix(onboarding): refuse the first-run tour when the canvas is hidden #5562
Workflow file for this run
This file contains hidden or 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
| # Description: Blocks PRs that add or replace a binary file above the size | |
| # limit. Bypass at your peril by adding the 'allow-large-binaries' label to the PR. | |
| name: 'CI: Binary Size Validation' | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, labeled, unlabeled] | |
| merge_group: | |
| types: [checks_requested] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| binary-size: | |
| if: ${{ !contains(github.event.pull_request.labels.*.name, 'allow-large-binaries') }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| # The label bypass only exists on the pull request, so re-checking the | |
| # queued commit would block any PR that was deliberately allowed through. | |
| - name: Binary sizes already verified before merge queue | |
| if: github.event_name == 'merge_group' | |
| run: echo 'Binary sizes are checked on the pull request.' | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| if: github.event_name == 'pull_request' | |
| with: | |
| fetch-depth: 0 | |
| - name: Block oversized binary files | |
| if: github.event_name == 'pull_request' | |
| run: ./scripts/cicd/check-binary-size.sh | |
| env: | |
| BASE_REF: ${{ github.event.pull_request.base.sha }} | |
| HEAD_REF: ${{ github.event.pull_request.head.sha }} | |
| MAX_BINARY_BYTES: '1048576' |