[DataTableCell]: editorRef.current.focus(). #1178
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: track_bundle_size | |
on: | |
pull_request: | |
branches: | |
- develop | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.base_ref }}-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
track-bundle-size: | |
runs-on: ubuntu-latest | |
container: node:16 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
path: source-branch | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
node_modules | |
./*/node_modules | |
key: v1-npm-deps-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: v1-npm-deps- | |
- name: track-bundle-size-source | |
working-directory: source-branch | |
run: | | |
yarn | |
yarn track-bundle-size | |
- name: 'Upload trackBundleSize.md' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: trackBundleSize.md | |
path: ./source-branch/.reports/trackBundleSize.md | |
retention-days: 1 # set minimum retention | |
- name: 'Create prNumber.txt' | |
run: | | |
echo ${{ github.event.pull_request.number }} > ./prNumber.txt | |
- name: 'Upload prNumber.txt' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: prNumber.txt | |
path: ./prNumber.txt | |
retention-days: 1 # set minimum retention | |
- name: 'Mark as failed if any package size exceeds threshold' | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const mdContent = require('fs').readFileSync('./source-branch/.reports/trackBundleSize.md').toString(); | |
if (mdContent.indexOf('Exceeds Limits: yes') !== -1) { | |
core.setFailed('Size of some package exceeds threshold') | |
} |