From 34a04b0746eae1a126e8130ac6c4f57b01c3e304 Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Sun, 28 May 2023 12:16:45 +0100 Subject: [PATCH] chore: recover bundlewatch (#3829) Signed-off-by: Sami Mazouz --- .bundlewatch.config.json | 13 +++++++++++++ .github/workflows/REUSABLE_frontend.yml | 1 + .github/workflows/frontend.yml | 3 +-- framework/core/js/.bundlewatch.config.json | 8 -------- 4 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 .bundlewatch.config.json delete mode 100644 framework/core/js/.bundlewatch.config.json diff --git a/.bundlewatch.config.json b/.bundlewatch.config.json new file mode 100644 index 000000000..65b6ca409 --- /dev/null +++ b/.bundlewatch.config.json @@ -0,0 +1,13 @@ +{ + "files": [ + { + "path": "./framework/core/js/dist/*.js", + "maxSize": "150KB" + }, + { + "path": "./extensions/*/js/dist/*.js", + "maxSize": "30KB" + } + ], + "defaultCompression": "gzip" +} diff --git a/.github/workflows/REUSABLE_frontend.yml b/.github/workflows/REUSABLE_frontend.yml index 705eeb357..b124b88a0 100644 --- a/.github/workflows/REUSABLE_frontend.yml +++ b/.github/workflows/REUSABLE_frontend.yml @@ -152,3 +152,4 @@ jobs: env: BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.bundlewatch_github_token }} CI_COMMIT_SHA: ${{ github.event.pull_request.head.sha }} + CI_BRANCH_BASE: ${{ github.event.pull_request.base.ref }} diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 60eae2d28..20240922d 100755 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -12,8 +12,7 @@ jobs: cache_dependency_path: ./yarn.lock main_git_branch: main enable_tests: true - # @TODO: fix bundlewatch - enable_bundlewatch: false + enable_bundlewatch: true secrets: bundlewatch_github_token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} diff --git a/framework/core/js/.bundlewatch.config.json b/framework/core/js/.bundlewatch.config.json deleted file mode 100644 index 3604c5cfb..000000000 --- a/framework/core/js/.bundlewatch.config.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "files": [ - { - "path": "./dist/*.js" - } - ], - "defaultCompression": "gzip" -}