-
Notifications
You must be signed in to change notification settings - Fork 216
33 lines (28 loc) · 861 Bytes
/
bundle-size.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Report bundle size
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
TURBO_API: 'https://127.0.0.1:9080'
TURBO_TOKEN: ${{ secrets.TURBO_SERVER_TOKEN }}
TURBO_TEAM: ${{ github.repository_owner }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Setup a local cache server for Turborepo
uses: felixmosh/turborepo-gh-artifacts@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
server-token: ''
- name: Compute bundle size report
uses: preactjs/compressed-size-action@v2
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
minimum-change-threshold: 10000 # 10 KB
build-script: 'turbo run build --color --concurrency=5'