Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT REVIEW] testing size-limit github actions #2691

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'size'
on:
pull_request:
branches:
- main
permissions:
pull-requests: write
jobs:
size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v1
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"docs": "pnpm --filter @microsoft/teams-js docs",
"docs:validate": "pnpm --filter @microsoft/teams-js docs:validate",
"lint": "lerna run lint",
"size": "lerna run size",
"start-blazor-app": "pnpm --filter blazor-test-app start",
"start-perf-app": "pnpm --filter teams-perf-test-app start",
"start-ssr-app": "pnpm --filter ssr-test-app start",
Expand Down Expand Up @@ -153,5 +154,11 @@
"dependencies": {
"skeleton-buffer": "file:./skeleton-buffer",
"uuid": "^9.0.1"
}
},
"size-limit": [
{
"brotli": false,
"path": "./packages/teams-js/dist/esm/packages/teams-js/src/**/*.js"
}
]
}
11 changes: 10 additions & 1 deletion packages/teams-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"docs:validate": "pnpm typedoc --emit none",
"lint": "pnpm eslint ./src ./test --max-warnings 0 --fix --ext .ts",
"prettier": "prettier --write '**/*.{ts,js,css,html}'",
"size": "pnpm build && size-limit",
"test": "jest",
"test:verbose": "pnpm test -- --verbose false --silent false"
},
Expand All @@ -28,7 +29,9 @@
"debug": "^4.3.3"
},
"devDependencies": {
"@types/debug": "^4.1.7"
"@size-limit/preset-big-lib": "^11.1.6",
"@types/debug": "^4.1.7",
"size-limit": "^11.1.6"
},
"sideEffects": [
"src/internal/communication.ts",
Expand All @@ -46,5 +49,11 @@
"dist/**",
"LICENSE",
"README.md"
],
"size-limit": [
{
"brotli": false,
"path": "./dist/esm/packages/teams-js/src/**/*.js"
}
]
}
Loading
Loading