Skip to content

Commit

Permalink
Merge pull request #742 from strapi/enhance/bundle-size
Browse files Browse the repository at this point in the history
GitHub: Add bundle-size PR reporter
  • Loading branch information
gu-stav authored Nov 2, 2022
2 parents 45b4f8e + 3b90bc9 commit 61f3a7a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/bundle-size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Bundle-size

on:
pull_request:
branches:
- main

jobs:
size:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: 14
cache: yarn

- uses: ./.github/actions/install-modules

- name: Link locale packages and install their dependencies
run: yarn bootstrap

- name: Build packages
run: yarn build

- uses: preactjs/compressed-size-action@v2
with:
pattern: '**/dist/**/*.{cjs,js,svg}'

0 comments on commit 61f3a7a

Please sign in to comment.