Skip to content

Commit

Permalink
Merge pull request #1069 from nextstrain/bundle-size-ci
Browse files Browse the repository at this point in the history
Add bundlesize checks to CI
  • Loading branch information
jameshadfield authored Apr 16, 2020
2 parents 307eb8e + 9a36ad3 commit 2e78b0e
Show file tree
Hide file tree
Showing 4 changed files with 527 additions and 12 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,12 @@ jobs:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm run lint
bundlesize:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10
- run: npm install
- run: npx bundlesize
12 changes: 12 additions & 0 deletions bundlesize.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"files": [
{
"path": "./dist/auspice.bundle.js",
"maxSize": "180 kB"
},
{
"path": "./dist/auspice.chunk.*.bundle.js",
"maxSize": "110 kB"
}
]
}
Loading

0 comments on commit 2e78b0e

Please sign in to comment.