Skip to content

Commit 488bea9

Browse files
committed
ci(gravity): measure bundle size with Gravity
1 parent 7981b08 commit 488bea9

File tree

3 files changed

+347
-1
lines changed

3 files changed

+347
-1
lines changed

.github/workflows/gravity.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request: {}
8+
9+
jobs:
10+
gravity:
11+
name: Gravity
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
- name: Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
registry-url: "https://registry.npmjs.org"
20+
- name: install dependencies
21+
run: npm ci
22+
- name: Run Gravity
23+
run: npm run gravityci "lib/**/*" "index.js"
24+
env:
25+
GRAVITY_TOKEN: ${{ secrets.GRAVITY_TOKEN }}

0 commit comments

Comments
 (0)