Skip to content

Commit

Permalink
Add ci budget check (#11)
Browse files Browse the repository at this point in the history
* add ci budget check
  • Loading branch information
ethangardner authored Dec 6, 2024
1 parent 2ee2704 commit dc5e0b6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "size-limit"

on:
pull_request:
branches:
- main

permissions:
pull-requests: write

jobs:
size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v4
- uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"scripts": {
"start": "tsup && concurrently -k -r \"tsup --watch\" \"web-dev-server\"",
"build": "tsup",
"size": "npm run build && size-limit",
"prepublish": "tsup",
"lint": "eslint && prettier \"**/*.ts\" --check --ignore-path .gitignore",
"format": "eslint . --fix && prettier \"**/*.ts\" --write --ignore-path .gitignore",
"size": "npm run build && size-limit",
"test": "vitest run && npm run size",
"test:watch": "vitest --watch",
"test:coverage": "vitest --coverage"
Expand Down

0 comments on commit dc5e0b6

Please sign in to comment.