Skip to content

Commit aec4958

Browse files
authored
check treeshakeability in CI (#10861)
* check treeshakeability in CI * copy-paste oops
1 parent c60f2e3 commit aec4958

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,18 @@ jobs:
6060
- name: build and check generated types
6161
if: (${{ success() }} || ${{ failure() }}) # ensures this step runs even if previous steps fail
6262
run: pnpm build && { [ "`git status --porcelain=v1`" == "" ] || (echo "Generated types have changed — please regenerate types locally and commit the changes after you have reviewed them"; git diff; exit 1); }
63+
64+
Treeshaking:
65+
runs-on: ubuntu-latest
66+
timeout-minutes: 5
67+
steps:
68+
- uses: actions/checkout@v3
69+
- uses: pnpm/[email protected]
70+
- uses: actions/setup-node@v3
71+
with:
72+
node-version: 18
73+
cache: pnpm
74+
- name: install
75+
run: pnpm install --frozen-lockfile
76+
- name: check
77+
run: cd packages/svelte && node scripts/check-treeshakeability.js

0 commit comments

Comments
 (0)