mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
ci: add bundle size limit action (#6783)
* ci: add bundle size limit action * chore: fix lint * ci: fix * ci: fix workflow * ci: fix workflow * add size limit deps * use node 18 --------- Co-authored-by: Nitin Kumar <nitin.kumar@razorpay.com>
This commit is contained in:
parent
9f76f8677b
commit
a80ac4c748
5 changed files with 677 additions and 14 deletions
26
.github/workflows/size-limit.yml
vendored
Normal file
26
.github/workflows/size-limit.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
name: "size"
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
size:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
CI_JOB_NUMBER: 1
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup Node.js 18.x
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18.x
|
||||
- name: Install and build
|
||||
run: yarn --frozen-lockfile
|
||||
env:
|
||||
CI: true
|
||||
- uses: andresz1/size-limit-action@v1
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
build_script: build:app
|
||||
skip_step: install
|
Loading…
Add table
Add a link
Reference in a new issue