mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-21 01:01:05 +08:00
remove-sizewatcher (#1400)
This commit is contained in:
parent
55db5c187a
commit
d117ad0049
26
.github/workflows/sizewatcher.yml
vendored
26
.github/workflows/sizewatcher.yml
vendored
@ -1,26 +0,0 @@
|
||||
name: gradio-sizewatcher
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "main"
|
||||
paths:
|
||||
- "**"
|
||||
pull_request:
|
||||
paths:
|
||||
- "**"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '14'
|
||||
# ---------- this runs sizewatcher ------------
|
||||
- run: npx @adobe/sizewatcher
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
@ -1,27 +0,0 @@
|
||||
report:
|
||||
# to report a github commit status (will block PR if it fails)
|
||||
# default: false
|
||||
githubStatus: true
|
||||
# to report a comment on the github PR
|
||||
# default: true
|
||||
githubComment: false
|
||||
|
||||
# global thresholds when to warn or fail a build
|
||||
# note that one failing or warning comparator is enough to fail or warn
|
||||
# can be either
|
||||
# - percentage: "50%" ("-10%" for size decrease)
|
||||
# - absolute limit, as byte string: "10 MB", "5 KB"
|
||||
# see https://www.npmjs.com/package/xbytes
|
||||
# - absolute limit, as byte number: 1000000
|
||||
limits:
|
||||
# when to fail - default: 100%
|
||||
fail: 10 MB
|
||||
# when to warn - default: 30%
|
||||
warn: 1 MB
|
||||
# below the ok limit you will get a cheers for making it notably smaller
|
||||
# default: -10%
|
||||
ok: -1 MB
|
||||
|
||||
comparators:
|
||||
# set a comparator "false" to disable it
|
||||
git: false
|
Loading…
Reference in New Issue
Block a user