Skip to content

Commit

Permalink
[AC-2941] ci: add pr-size-diff workflow (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
bang9 committed Jul 1, 2024
1 parent c482cf4 commit fe7d2e2
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-comment-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
pr-comment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# see list of commands: https://github.com/sendbird/release-automation-action#commands
- uses: sendbird/release-automation-action@latest
with:
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/pr-size-diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: PR size diff

on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: 'recursive'
fetch-depth: 0
- name: Enable corepack
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'yarn'
- uses: preactjs/compressed-size-action@v2
with:
pattern: "./dist/**/*.{js,css}"
exclude: "{**/*.d.ts,**/node_modules/**}"
strip-hash: "\\w+-([a-zA-Z0-9_-]{8})\\.js$"
2 changes: 1 addition & 1 deletion src/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@ input:focus {
.sendbird-suggested-replies {
margin: 0 !important;
padding: 8px 0 16px;
}
}

0 comments on commit fe7d2e2

Please sign in to comment.